您好我正在使用网格视图来填充数据库中的数据,但是当我点击网格视图的下一页按钮时,我收到以下错误 无效的回发或回调论点。使用< 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
更多推荐
无效的回发或回调参数..
发布评论