正则表达式错误 [英] Regular Expression Error

查看:125
本文介绍了正则表达式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"RegularExpressionValidator2"的ControlToValidate属性不能为空.

The ControlToValidate property of ''RegularExpressionValidator2'' cannot be blank.

<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Invalid Zip Code" ValidationExpression="\d{5}(-\d{4})?" ControlToValidate="txtZip" ValidationGroup="r">

推荐答案

尝试重建解决方案并删除临时文件
Try rebuilding the solution and deleting temporary files


这篇关于正则表达式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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