By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,533 Members | 2,102 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,533 IT Pros & Developers. It's quick & easy.

Validate dropdownlist and textbox conditionally problem

P: n/a
Hi,

My web form has a dropdown list and a textbox server controls. The user must
enter some text in the textbox he selects only the last item in the
dropdownlist. I tried using a custom validator but its not working. Is it
the right approach. Can anyone guide me about how to implement this.

Thanks,

Reddy
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I have a commercial solution for you. My product, "Professional Validation
And More", replaces Microsoft's validators to overcome its limitations. In
this case, you can still use the RequiredTextValidator on the TextBox and
set the new "Enabler" property to a rule that enables the validator only
when the DropDownList has its last item selected. This kind of smart
enabling is one of those limitations that is often run into with Microsoft's
validators. You will not need to write any custom code, especially figuring
out the client-side javascript because its all built in. Details are at
http://www.peterblum.com/vam/home.aspx.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com

"Reddy" <an********@NO.JUNK.MAIL> wrote in message
news:O4**************@TK2MSFTNGP09.phx.gbl...
Hi,

My web form has a dropdown list and a textbox server controls. The user must enter some text in the textbox he selects only the last item in the
dropdownlist. I tried using a custom validator but its not working. Is it
the right approach. Can anyone guide me about how to implement this.

Thanks,

Reddy

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.