无效的回发或回调参数错误 [英] Invalid postback or callback argument error

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

问题描述

大家好.
使用imagebutton后出现错误,错误是:
无效的回发或回调参数.使用配置中的< pages enableEventValidation ="true"/>或页面中的<%@ Page EnableEventValidation ="true"%>启用事件验证.出于安全目的,此功能会进行验证回传或回调事件的参数源自最初呈现它们的服务器控件.如果数据有效且预期,请使用ClientScriptManager.RegisterForEventValidation方法以注册回传或回调数据以进行验证."

hi all.
i had an error after using imagebutton the error is:
"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."
may i have answer!!

推荐答案

您可以随时设置enableEventValidation ="false"在您的页面指令中.但这涉及安全问题.阅读有关它.

这是一个常见错误.使用Google并了解它.采取适当的步骤.
You can always set enableEventValidation="false" in your page directive. But that has security concerns. Read about it.

This is a common error. Use Google and know about it. Take appropriate steps.


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

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