Solved

ASP.NET 1.1 - Required field validator -- Either OR between two fields??

Posted on 2006-10-23
1
903 Views
Last Modified: 2010-05-18
I have two dropdownlist fields on my form.  The user must fill out one OR the other (or both) of these two fields.  Is there a way to use the required field validator across two controls in this manner?  If not, how can I code what I'm describing here?

thank you!
0
Comment
Question by:sah18
1 Comment
 
LVL 23

Accepted Solution

by:
adathelad earned 125 total points
ID: 17787939
Hi,

You can use a Custom Validator to do this - this gives you the flexibility to right your own script to validate this scenario and return the appropriate validity status.

There's an example here:
http://aspnet.4guysfromrolla.com/articles/073102-1.aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now