PC Review


Reply
Thread Tools Rate Thread

Re: RequiredField Validator

 
 
Chris Jackson
Guest
Posts: n/a
 
      8th Mar 2004
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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
RequiredField Validator options MattB Microsoft ASP .NET 3 31st Mar 2004 08:17 PM
Re: RequiredField Validator Tom Porterfield Microsoft C# .NET 0 8th Mar 2004 08:32 PM
Re: RequiredField Validator Ignacio Machin \( .NET/ C# MVP \) Microsoft C# .NET 0 8th Mar 2004 08:23 PM
CheckBoxList RequiredField Validator Bryce Budd Microsoft ASP .NET 0 23rd Nov 2003 12:49 AM
Help: Requiredfield validator Sean Microsoft ASP .NET 2 31st Jul 2003 05:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:11 PM.