Results 1 to 2 of 2

Thread: button click navigates to page for no reason

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    button click navigates to page for no reason

    I have a page where customers can request to change their address in our system... so it comes up with the current info, they can modify it and click submit request and it will email the information to us. i use regular expression validators to check the data.. so in my button click code I had this code
    VB Code:
    1. Private Sub cmdSubmitAddr_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmitAddr.Click
    2.         If Page.IsValid Then
    3.             lblResult.Text = "ALL VALID"
    4.         Else
    5.             lblResult.Text = "The page is not valid, please view the error messages above and correct any errors before submitting again."
    6.         End If
    7.     End Sub
    just to test the regular expressions... it works to validate the items i told it to, but if the validation is all good (nothing fails the regular expression check) then it navigates to a random page in my app???? when I say random, what I mean is while it always goes to the same page, i have no idea why it would do so.. there is no response.redirect or anything like that.. there is not even a reference AT ALL to the page its going to in the page im working on... i noticed this issue before when messing around learing asp.net... any idea why this is happening?

  2. #2

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: button click navigates to page for no reason

    *bump*

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