I created a decimal only usercontrol (basically a text box with a public text property, a required field validator, a Compare validator, a filtered text box Ajax extender, and obviously a couple of validator callout extender).
I wanted to validate the usercontrol using a compare validator on the main form, but took a little while to figure out how to let the validator select it. The fix is quite simple, just add the attribute
4 comments:
Thanks! You saved my butt with this post!
Sweet. That saved my time too.
Thanks that's great. Did you get client side validation going? I couldn't get it to work.
Setting the ControlToValidate property of the validator as follows seems to enable client side validation...
ControlToValidate="myUserControl$TextBox1"
Post a comment