返回首页

10页在我的网格,在我的GridView的分页时,请按一下1,2,3,4,--- 10页时,单击"网格在1,2,3前言页,当过点击第二页中,我得到这个错误。


Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpruntime requestvalidationmode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.

aspx页面。

{C}| Subbu1999

回答

评论会员:游客 时间:2012/02/07
汗・穆罕默德・faizan:写这个代码页指标的变化{的C4} ......在这里写代码bindgrid
pashad:喜的朋友,

你需要处理PageIndexChanging事件。

希望下面的代码:

{C5的}
评论会员:Nigam的帕特尔 时间:2012/02/07
您已输入到您的应用程序,这是作为风险的探险治疗
本hapend时的输入值与quot开始; LT"或quot;>",所以它可以解释为风险
解决方案:
LT;选择valuegt;"如果不移除值盯着与quot; <"(我喜欢的一样quot东西;然后尝试
禁用请求验证通过添加属性的ValidateRequest = quot; falsequot。@ Page指令
它是在aspx页面中的巨头,凝视着
LT;??%@语言BR />例如:
{5233}
评论会员:游客 时间:2012/02/07
|koolprasad2003:这是因为像明智的脚本语言JavaScript代码或大部分的时间。您可以通过1)单页{C7-}2)整体解决方案(将它放在里面的配置节的web.config文件){C8的}不要害怕使用它,如果这有助于不要犹豫,以纪念为解决解决方案
dinidusoft123
评论会员:游客 时间:2012/02/07
codeprespanclass="code-keyword"protected/spanspanclass="code-keyword"void/spanGridView2_PageIndexChanging(spanclass="code-keyword"object/spansender,GridViewPageEventArgse){GridView2.PageIndex=e.NewPageIndex;PendingBindApproval();}/pre/code
王子安东尼Ğ
评论会员:THX。!有用 时间:2012/02/07