无效的回发或回调参数..

编程入门 行业动态 更新时间:2024-10-27 13:33:56
本文介绍了无效的回发或回调参数..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好我正在使用网格视图来填充数据库中的数据,但是当我点击网格视图的下一页按钮时,我收到以下错误 无效的回发或回调论点。使用< pages enableeventvalidation =true>启用事件验证在配置或<%@ Page EnableEventValidation =true%>在一个页面中。出于安全考虑,此功能可验证回发或回调事件的参数是否来自最初呈现它们的服务器控件。如果数据有效且符合预期,请使用ClientScriptManager.RegisterForEventValidation方法注册回发或回调数据以进行验证。 我看到某处要添加以下行aspx页面 <%@ Page EnableEventValidation =false%> 当我使用它时,它会给出另一个异常 指令'Page'未知

Hi I am using grid view to populate data from database, but when I click next page button of grid view I am getting following error Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. I saw somewhere to add following line to aspx page <%@ Page EnableEventValidation="false" %> when I used it, it gives another exception The directive 'Page' is unknown

推荐答案

您应该使用<%@ Page EnableEventValidation =true%> ;页面指​​令不是假的 Hi you should use <%@ Page EnableEventValidation="true" %> not false is page directive

更多推荐

无效的回发或回调参数..

本文发布于:2023-11-25 01:11:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627706.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:回调   参数

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!