c# - Change border or background color on control being validated? -


i'm adding validation existing asp.net web app built web form. input textbox controls need validate created dynamically on server side.

while creating textboxes, can create rangevalidator controls , set controltovalidate id of textbox.

when validation fails, rangevalidator displays error message @ validation control placed.

but rather change border or background-color red of textbox instead. how can done?

you can add custom logic validators both sever side , client side. check link help. http://msdn.microsoft.com/en-us/library/f5db6z8k%28v=vs.90%29.aspx


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -