Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dynamic RequiredFieldValidator

0 views
Skip to first unread message

sta...@gmail.com

unread,
Apr 25, 2008, 9:58:26 AM4/25/08
to
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

Cowboy (Gregory A. Beamer)

unread,
Apr 25, 2008, 10:19:58 AM4/25/08
to
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!
|
*************************************************
<sta...@gmail.com> wrote in message
news:e45aa2be-175a-4562...@j22g2000hsf.googlegroups.com...

0 new messages