Go Back   Velocity Reviews > General Computer Discussion > General Help Related Topics
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

General Help Related Topics - How do find out if a button was clicked before the textchanged event of textbox fires

 
Thread Tools Search this Thread
Old 10-27-2006, 10:19 AM   #1
Default How do find out if a button was clicked before the textchanged event of textbox fires


I am working in VS2003 using vb.net.

I have a page that contains a textbox with autopostback set to True and validation code in the textchanged event.

I also have a cancel button on this page that clears all textboxes and disables all the controls on the page.

The problem is, if I populate the textbox and click the cancel button the validation in the textchanged event runs before the code in the button's click event. The textbox validation must run when any of the other buttons on the page are clicked and also when the user tabs off the textbox, but I want to bypass it when the cancel button is clicked.

Is there any way of getting hold of the button's id so that i can prevent the code in textchange event if the button is 'cancel'?


Jack
Jack is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynchronous process from asp.net page button click event? Ritha Software 0 09-29-2009 03:20 PM
How to make the system.process as asynchronous from asp.net page button click event? Ritha Software 0 09-29-2009 08:17 AM
Dynamic Button Event sathyanallusamy Software 0 02-25-2008 11:04 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46