Solved

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

Posted on 2006-10-23
1
900 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

8 Experts available now in Live!

Get 1:1 Help Now