Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Required field validator

Thread Tools

Required field validator

Chris Davoli
Posts: n/a
VB.Net - I've got a drop down where the first item says "Please Select" in
the text of the drop down and 0 as the value for that item. I've also got a
text box that after you select the drop down item, there needs to be a value
typed into the text box. So, if there is an item selected in the drop down
listbox (other than zero), then the textbox must have a value.

I know I can just write javascript and check each field by writing a
javascript routine to be called when the submit button is clicked, or I can
bounce the page and check it there, but I would like to use a required field
validator. Is there a way to use a required field validator (or any other
validator) to check two fields to be required?

Chris Davoli

Reply With Quote
Posts: n/a
Take a look at

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript validation for a not required field, field is onlyrequired if another field has a value jr Javascript 3 07-08-2010 10:33 AM
required field validator - before changing the value. Mr. x ASP .Net 0 11-30-2003 08:32 PM
Required Field Validator Jim Heavey ASP .Net 0 11-14-2003 07:47 PM
Required field validator problem Do ASP .Net 3 10-23-2003 12:38 AM
Required Field Validator Client side popup Jinsong Liu ASP .Net 3 08-14-2003 07:53 PM