在asp.net的RequiredFieldValidator是什么文字和的ErrorMessage区别? [英] In asp.net RequiredFieldValidator What is difference between Text and ErrorMessage?
本文介绍了在asp.net的RequiredFieldValidator是什么文字和的ErrorMessage区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在asp.net的RequiredFieldValidator是什么文字和ErrorMessage属性区别?
In asp.net RequiredFieldValidator What is difference between Text and ErrorMessage property?
推荐答案
文字:验证失败时要显示的消息
Text : The message to display when validation fails.
的ErrorMessage:验证失败时ValidationSummary控件中显示的文本。注:该文本也将显示在如果未设置Text属性的验证控件
ErrorMessage : The text to display in the ValidationSummary control when validation fails. Note: This text will also be displayed in the validation control if the Text property is not set.
参考:<一href=\"http://www.w3schools.com/aspnet/control_reqfieldvalidator.asp\">http://www.w3schools.com/aspnet/control_reqfieldvalidator.asp
这篇关于在asp.net的RequiredFieldValidator是什么文字和的ErrorMessage区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文