RegularExpressionValidator的新行为 [英] RegularExpressionValidator new behaviour
本文介绍了RegularExpressionValidator的新行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将我的asp.net(1.1)部署到IIS 6之后,我注意到我的验证
表达式没有验证控件
客户端上的(即文本框)更多和往返发生。
任何想法为什么?
问候
Mehdi
Hi,
After deploying my asp.net (1.1) to IIS 6, I have noticed that my validation
expressions are not validating the controls (i.e textboxes) on the
client-side any more and round-trips are occuring.
Any ideas why?
Regards
Mehdi
推荐答案
webroot有aspnet_client文件夹吗?并且它有任何.js文件
?
-
问候,
Hermit Dave
( http:// hdave。 blogspot.com )
" Mehdi" <无**** @ leavemealone.nowhere>在消息中写道
新闻:Oq ************** @ TK2MSFTNGP11.phx.gbl ...
does the webroot have aspnet_client folder ? and does it have any .js files
?
--
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"Mehdi" <no****@leavemealone.nowhere> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
>
在将我的asp.net(1.1)部署到IIS 6之后,我注意到我的
验证表达式不再验证
客户端上的控件(即文本框),往返旅行。
任何想法为什么?
问候
Mehdi
Hi,
After deploying my asp.net (1.1) to IIS 6, I have noticed that my validation expressions are not validating the controls (i.e textboxes) on the
client-side any more and round-trips are occuring.
Any ideas why?
Regards
Mehdi
隐士,
感谢您的回复。
我有asp_client文件夹这样的javascripts(如果我是undrestand你正确的)
在网络根目录上。但是我没有使用我自己的javascripts这是一个
的例子:
RegularExpression1.ValidationExpression =" ^ [0-9a-zA-Z] { 5,15}
Hermit,
Thanks for the reply.
I have asp_client folders such javascripts (if I undrestand you correctly)
on the web root. However I am not using my own javascripts here is an
example:
RegularExpression1.ValidationExpression = "^[0-9a-zA-Z]{5,15}
";
RegularExpression1.ControlToValidate = TextBox1;
RegularExpression1.ErrorMessage ="请输入有效文字;
Mehdi
";
RegularExpression1.ControlToValidate = TextBox1;
RegularExpression1.ErrorMessage = "Please enter a valid text";
Mehdi
这篇关于RegularExpressionValidator的新行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文