在Windows Server 2012上安装KB2894855后无效的回发或回调参数错误 [英] Invalid postback or callback argument error after installing KB2894855 on windows server 2012

查看:94
本文介绍了在Windows Server 2012上安装KB2894855后无效的回发或回调参数错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



安装 http:// support后。 microsoft.com/kb/2894855 [ ^ ]

我的网络服务器上的此更新(Windows Server 2012)



在进行跨页面发布时,我收到以下错误。



无效的回发或回调参数。使用< pages enableeventvalidation =true>启用事件验证在配置或<%@ Page EnableEventValidation =true%>在一个页面中。出于安全考虑,此功能可验证回发或回调事件的参数是否来自最初呈现它们的服务器控件。如果数据有效且符合预期,请使用ClientScriptManager.RegisterForEventValidation方法注册回发或回调数据以进行验证。



注意:此错误未在我在webconfig / Page属性中更改了enableEventValidation =false。根据安全方面,我不应该这样做。

Hi All,

After installing http://support.microsoft.com/kb/2894855[^]
This update on my webserver (windows server 2012)

While doing cross page posting, I am getting the 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.

Note: This error is not getting when I changed enableEventValidation="false" in my webconfig/Page attribute. Which I am not suppose to do as per the security aspects.

推荐答案

嗨Renju,



这个只有当我们在请求页面和当前页面中使用相同的控件ID时才会出现问题。



尝试根据我们可以出来的页面生成动态控件ID从这些验证问题。



希望这会有所帮助!!!
Hi Renju,

This issue will come only when we use same control id in the request page and the current page.

try generating dynamic control id based on the page by which we can come out from these kind of validation issues.

Hope this will help !!!


这篇关于在Windows Server 2012上安装KB2894855后无效的回发或回调参数错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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