Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Required validator always firing

Reply
Thread Tools

Required validator always firing

 
 
David C
Guest
Posts: n/a
 
      04-23-2007
I have a RequiredFieldValidator on a DropDownList but it fires even when I
click the cancel button. How can I ignore and still keep the required
validation if the user actually makes entries in the other fields. Thanks.

David


 
Reply With Quote
 
 
 
 
Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
Guest
Posts: n/a
 
      04-23-2007
Simply set the CausesValidation property of the Cancel button to false.
Here's more info:
http://SteveOrr.net/articles/Validation.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net


"David C" <> wrote in message
news:...
>I have a RequiredFieldValidator on a DropDownList but it fires even when I
>click the cancel button. How can I ignore and still keep the required
>validation if the user actually makes entries in the other fields. Thanks.
>
> David
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Re: Custom validator not firing. Any idea why? nateastle@gmail.com ASP .Net 3 06-01-2009 11:01 PM
OnServerValidate not firing for custom validator prady ASP .Net Web Controls 0 03-12-2007 06:53 PM
Struts Validator - creditCard validator smrimell@gmail.com Java 4 02-13-2007 08:32 PM
Session_End Event Always Firing Jeremy ASP .Net 1 12-03-2005 05:20 PM
ItemDataBound not always firing: =?Utf-8?B?Sm9uYXMgQnVzaA==?= ASP .Net 0 01-20-2004 06:21 PM



Advertisments
 



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 47 48 49 50 51 52 53 54 55 56 57