TechRepublic : A ZDNet Tech Community

Report as spam Discussion  -  Post 1 of 3
Conditional validation?
The builtin validators are great for basic stuff, something I find missing is a conditional validator -- i.e. one that validates only if a third condition is met. For example, I have a form with payment methods on it. If Terms is selected, I require nothing more. If Credit Card is selected, I need to require CCNumber, CCExp, and CardHolderName. I've not found a good/easy way to do this with the built-ins.

Adding another property to the existing validators (like CheckedControl) would solve this problem. Otherwise, Custom Validators and/or roll-your-own javascript are your alternatives.
Posted: 10/11/2005 @ 10:10 AM (PDT)
avatar
anafziger@...
Job Role: IT Consultant
Location: SANTA BARBARA, California
Member since: 01/04/2001

View Profile  | Send Message
Post a Reply Save
« Previous  |  Next »

Print/View all Posts | Subscribe to this Thread 

Read original item: Perform HTML form validation with ASP.NET
Conditional validation?anafziger@... | 10/11/2005 @ 10:10 AM (PDT)
Sorry posted wrong placeinnocent_bystander | 10/12/2005 @ 03:07 PM (PDT)
Server side validation for security as wellinnocent_bystander | 10/12/2005 @ 03:10 PM (PDT)

SponsoredWhite Papers, Webcasts, and Downloads

White Papers, Webcasts, and Downloads

Browse by Tag

networking
Popular tags: windows,  software,  hardware,  security,  it management
e-mail
Popular tags: windows,  software,  networking,  security,  hardware
hardware
Popular tags: windows,  software,  networking,  it management,  security
programming
Popular tags: software,  windows,  networking,  hardware,  it management
software
Popular tags: windows,  hardware,  networking,  programming,  it management
windows
Popular tags: software,  networking,  hardware,  security,  it management
linux
Popular tags: software,  windows,  networking,  hardware,  security
it management
Popular tags: networking,  windows,  software,  security,  hardware
career
Popular tags: it management,  networking,  software,  windows,  feedback
security
Popular tags: networking,  windows,  software,  it management,  hardware
off-topic
Popular tags: software,  windows,  hardware,  feedback,  networking
feedback
Popular tags: software,  windows,  hardware,  networking,  it management
project management
Popular tags: it management,  software,  networking,  windows,  programming
IT Help Desk Survival Guide, Third Edition
TechRepublic's IT Help Desk Survival Guide, Third Edition provides tools and recommendations to help you better manage help desk services, improve end-user support, troubleshoot frustrating hardware issues, identify quick fixes to vexing Windows problems, and help users make the most of Microsoft Office 2003.
Buy Now
500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now

SmartPlanet

Click Here