troubleshooting Question

Turn RequiredFieldValidators Enable/Disable If TextBox Empty

Avatar of gagnonmv
gagnonmvFlag for United States of America asked on
5 Comments1 Solution1596 ViewsLast Modified:
I have a web form that works well but I need to turn on/off requiredfiledvalidator depending on if certain textboxes have been completed or are empty.

I need an example of JavaScript using the following example:  Also where is this code placed? On the aspx page, aspx.vb page or on the function.vb page.

If TextBox1 empty then require TextBox2, TextBox3 requiredfieldvalidator enabled else........

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros