开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜