Dynamic RequiredFieldValidator

  • Thread starter Thread starter staeri
  • Start date Start date
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
 
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.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
 
Back
Top