Hello All,
Can you guys help me with this?
text1's autopostback set to true. The moment the user tabs out or basically loses focus off the text box, the validation takes place. What is happening here is if the user has the cursor focus on the textbox and click on the cancel button, text validation takes place but cancel click is ignored. So the user has to click on the cancel button again. Is there any way, i can catch the Cancel click event too?
Hope i clear. Any help would be great.
Thanks,
MB
Can you guys help me with this?
Code:
Private sub text1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles text1.TextChanged
'do some validation
End Sub
Private sub Cancel_click(Byval sender as object, ByVal e As System.EventArgs)
'cancel process
End Sub
text1's autopostback set to true. The moment the user tabs out or basically loses focus off the text box, the validation takes place. What is happening here is if the user has the cursor focus on the textbox and click on the cancel button, text validation takes place but cancel click is ignored. So the user has to click on the cancel button again. Is there any way, i can catch the Cancel click event too?
Hope i clear. Any help would be great.
Thanks,
MB