Solved

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

Posted on 2006-10-23
1
906 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

696 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