467,212 Members | 1,157 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,212 developers. It's quick & easy.

Validate dropdownlist and textbox conditionally problem

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
  • viewed: 1444
Share:
1 Reply
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.

Similar topics

reply views Thread by Luis Esteban Valencia | last post: by
1 post views Thread by Patrik Zdarsa | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.