Dynamic RequiredFieldValidator

S

staeri

In my FormView I have a dropdownlist (dd1) and a textbox (txt1).

It's ok to save a record if both are empty or both are filled. If a
value is selected in dd1 then txt1 should also be filled to be saved.

How can I handle this with RequiredFieldValidator?

Very grateful for help!

// S
 
C

Cowboy \(Gregory A. Beamer\)

I would opt for a CustomValidator, as it allows you to write fairly complex
validation code. Either that or get rid of client side validation on this
particular element.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
Sean29G025

Latest Threads

Top