Results 1 to 3 of 3

Thread: postback

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    postback

    is there a way to make a page postback...something like me.postback? I have validation controls and if a user gets an error message on the top of the page I want to bring them back to the top of the page. The way I have it now, they stay on the bottom of the page where the submit button is and are unaware that an error message is present...

  2. #2
    Member Ooogaleee's Avatar
    Join Date
    Nov 2002
    Location
    Jacksonville, FL
    Posts
    52
    Every page has a "Page_Error" event associated with it. Maybe write the approriate code inside that Page_Error handler? Here's what the hanlder looks like:


    Private Sub Page_Error(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Error


    Let us know if that helps...

    Ooogs

  3. #3

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    I ended up using the ValidationSummary control, which fixed the problem I was having...I'll try using the error event handler the next time....thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width