Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Requiredfieldvalidator - fire only when a certain button is clicked

Reply
Thread Tools

Requiredfieldvalidator - fire only when a certain button is clicked

 
 
Straatvark
Guest
Posts: n/a
 
      11-12-2003
On my page I have two types of search-es, each with its own input and
submit form inputs.

How do I prevent the fire of the "Requiredfieldvalidator1" assigned to
"input1" of "search1", when "submit2" of second search type is clicked
(and "Requiredfieldvalidator2" fired on the relevant "input2")

The inverse should happen when "search1" is done.

Thanks, gert
 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      11-13-2003
By default Page is validated once and all for all controls. But there are
workarounds:
http://msdn.microsoft.com/msdnmag/is...d/default.aspx


--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"Straatvark" <> wrote in message
news: om...
> On my page I have two types of search-es, each with its own input and
> submit form inputs.
>
> How do I prevent the fire of the "Requiredfieldvalidator1" assigned to
> "input1" of "search1", when "submit2" of second search type is clicked
> (and "Requiredfieldvalidator2" fired on the relevant "input2")
>
> The inverse should happen when "search1" is done.
>
> Thanks, gert



 
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
RequiredFieldValidator's depending on button clicked? Mark B ASP .Net 2 05-20-2010 03:41 AM
RequiredFieldValidator - only for 1 button David Thielen ASP .Net Web Controls 7 06-15-2006 06:41 PM
How could fire both TextChanged event and button click if button is clicked dyw55a@yahoo.com Javascript 0 06-01-2006 02:28 PM
open select pulldown box only if certain option is clicked Oskar Wild Javascript 2 08-28-2003 11:09 AM
RequiredFieldValidator doesn't fire on Windows 2003 Server Matt ASP .Net Web Controls 0 07-10-2003 02:08 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