Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

772 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