如何在使用常规exp验证时避免显示“显示摘要” [英] How to avoid 'show summary' display while using regular exp validation

查看:69
本文介绍了如何在使用常规exp验证时避免显示“显示摘要”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个页面中,我使用DDL的正则表达式验证。虽然它与'Show messageBox = true'一起正常工作,但它也会在消息框外显示相同的错误消息。下面是我的代码:



In one of my page I use regular expression validation for DDL's. Though it works fine with 'Show messageBox=true' it also displays the same error message outside the message box. Hereunder is my code:

<asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server"

            ControlToValidate="DropDownList8" ErrorMessage="Select Scheme"

            style="" ValidationExpression="[a-z0-9_]{1,45}" Font-Size="X-Small"></asp:RegularExpressionValidator>







<asp:ValidationSummary ID="ValidationSummary1" runat="server"
            ShowMessageBox="True"  ShowSummary="false" />





任何人都可以帮助我吗?



Can anyone help me out?

推荐答案

在RegularExpressionValidator中设置Text =*。
Set Text="*" in RegularExpressionValidator.


这篇关于如何在使用常规exp验证时避免显示“显示摘要”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆