开发者

highlight controls on submit

开发者 https://www.devze.com 2023-02-04 14:30 出处:网络
is there a way to change the color of the controls tha开发者_运维技巧t didn\'t pass validation after submitting a form in .net?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号