Monday, March 26, 2012

Change a textbox style property on failed validation

Can someone point me in the right direction for implementing a textbox that has it's border changed when a RequiredFieldValidator fails? Ideally this would be using either an extender or the control toolkit.

Thanks.

Hi,

The easiest way would be using CustomerValidator control, then add javascript function to change the style if validation fails.
Hope this helps.


Thanks, I ended up using a validator extender that styles the textbox if the validation fails.


Thats nice...Smile

No comments:

Post a Comment