gpt4 book ai didi

c# - 系统参数异常 : Invalid postback or callback argument

转载 作者:太空宇宙 更新时间:2023-11-03 11:35:05 26 4
gpt4 key购买 nike

Server Error in '/WebSite10' Application. Invalid postback or callback argument. Event validation is enabled using 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.

我弄错了。

请注意:我确实会动态生成一些控件并调用它们的事件。为什么会发生这种情况,我该如何预防?

最佳答案

您需要在每个 page_load 上动态地重新生成这些控件。即使在回传上。您还需要每次都将它们的 Id 设置为相同的值。

关于c# - 系统参数异常 : Invalid postback or callback argument,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6534676/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com