Client side validation is done through a client side script, which ASP.NET
injects a call to in all of your buttons. The best thing to do is to
implement your clear button as an <input type="button" /> object, and have
this button execute a client side script which clears all of the values
away. This eliminates the need for a server round trip just to clear up your
screen (you have nothing to collect, so why trouble the server and make the
user wait for you to do so?), and validation won't be called unless you
happen to call it.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Fabrizio" <(E-Mail Removed)> wrote in message
news:C1DE7E10-3A90-46DF-AB54-(E-Mail Removed)...
> Hi,
> I need to validate 1 textbox, I have 2 buttons, the first one submit the
> request , the second one shoud be a reset button, so the validator should
> not check the textbox when I click on it.
> But when I click on the second button, the validator doesn't allow me the
> reset because requires a value in textbox.
> Can I avoid this and enable the validator only for the first button?
> Thank you
> Fabrizio
|