Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Required field validator 1

Status
Not open for further replies.

boatdrinks

IS-IT--Management
Joined
Jun 18, 2004
Messages
51
Location
US
I have a drop-down box and a textbox. I would like to set the validator of the textbox to require a value only if a specific value is selected in the drop-down. Is there a way to do this?
 
Do you have any idea what it would look like in VB, and should this line go into the page_load?
 
Nope, I don't do VB. It should look very similar.

I would put this code in the dropdownlist's SelectedIndexChanged event handler.

That way you can conditionally set/change the validator when the user makes changes to the dropdownlist.



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top