验证摘要问题 [英] validation summary problem
问题描述
我已经在这里我使用验证摘要,并要求现场验证的页面。当我点击正在dispalyed在这两个验证摘要验证按钮错误消息显示写入所需字段验证的消息。我想显示验证摘要不同的消息和所需的字段验证。
例如
验证摘要应显示为标有*的领域是强制性的,并要求现场验证应该只显示一个*。
i have a page where i am using validation summary and required field validators. When i click the validation button error message is being dispalyed in both validation summary is showing message written in required field validators. I want to display different message in validation summary and required field validators. e.g validation summary should display "field marked with * are mandatory" and required field validator should display only a "*".
感谢
推荐答案
设置验证的文本属性设置为*。这将在验证器的文本验证失败时被显示出来,并在的ErrorMessage 将被验证摘要显示。
Set your validator's Text property to "*". This will be displayed at validator's text when validation fails, and the ErrorMessage will be displayed by the validation summary.
这篇关于验证摘要问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!