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
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?VB Code:
Private Sub cmdSubmitAddr_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmitAddr.Click If Page.IsValid Then lblResult.Text = "ALL VALID" Else lblResult.Text = "The page is not valid, please view the error messages above and correct any errors before submitting again." End If End Sub




Reply With Quote