正则表达式中的错误 [英] error in regularexpression

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

问题描述



当我在更新面板中的gridview中的文本框中输入太多特殊字符时......它会触发正确的验证消息...下面是正则表达式的代码

[\ _s_A-Za-z0-9] +

Gridview有两个按钮..更新和取消...当输入特殊字符时它会抛出正确的错误信息。它不会允许更新记录。但是点击取消按钮网格时应该处于理想位置。但是它给出了以下错误





Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码是:500



首次输入<之后/给出上述错误........



请帮帮我

Hi,
When I enter too many special characters in textbox in gridview in update panel....it fires proper validation msg...Below is code for regular expression
"[\s_A-Za-z0-9]+"
Gridview has two buttons..update and cancel...When enter special character it throws proper error msg.It wont allow to update record.But when clicks on cancel button grid should be in ideal position.But it gives below error


Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

when first enter < and after that / gives above error........

please help me

推荐答案

在<%@ Page指令中添加validateRequest =false。



谢谢,
Add validateRequest="false" in the <%@ Page directive.

Thanks,


你好



请参阅以下链接



http://forums.asp.net/t/1750082.aspx/1 [ ^ ]



我认为这会有所帮助。





谢谢
Hello

Refer to below link

http://forums.asp.net/t/1750082.aspx/1[^]

I think it will be helpful.


Thanks


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

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