highlight controls on submit
is there a way to change the color of the controls tha开发者_运维技巧t didn't pass validation after submitting a form in .net?
thanks
All controls have a BackColor property that can be used to change the background color.
EDIT: It seems you question is actually more about how to perform validation of your form. You should read through the examples on the CausesValidaion property and see how Validators are used in a method that subscribes to the button's Click event.
精彩评论