Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > validate two textboxes with one validator

Reply
Thread Tools

validate two textboxes with one validator

 
 
Drew
Guest
Posts: n/a
 
      04-21-2004
Hey,
i am currently looking for a nice solution for the following problem
( i could not find a sufficient solution in the other postings ):

I am having several textboxes on my page, some of them have
RequieredFieldValidators some not and i am having a ValidationSummary
at the top of my page to list all blank textboxes. Everything is
working fine so far...
but now i have two other textboxes. At least one of these two
textboxes
has to be filled. I wanted to implement another validator to check if
the content of both them is empty. If both of them are empty i want to
have one
message item in my summary....

I could not find a possibility to solve this problem in a good and
smart way.
I thought about using a customValidator with a clientscript but this
also did
not work probably.

Please can anybody help me, two validate two textboxes with one
validator, so that i still can list all invalid controls in my
validationSummary.

Thanks a lot !!!!
Drew
 
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
Validate between 2 textboxes light of mind. heavy of belly ASP .Net 5 06-03-2006 04:28 PM
How to validate one control based on the truth value of another validator? antonyliu2002@yahoo.com ASP .Net 1 10-12-2005 03:56 PM
Use one field to validate values in one of two fields Meredith Javascript 1 02-11-2005 02:05 PM
Q: validate many textboxes =?Utf-8?B?SklNLkgu?= ASP .Net 2 12-25-2004 05:26 PM
how we validate data in template column textboxes? Hemant ASP .Net Web Controls 2 08-25-2003 11:26 AM



Advertisments