【问题标题】:Get postback control in PageRequestManager endRequest event在 PageRequestManager endRequest 事件中获取回发控制
【发布时间】:2011-10-01 21:42:06
【问题描述】:

如何获取导致 PageRequestManager endRequest 事件中回发的控件的 ID?

我用 Firebug 查看了 EndRequestEventArgs,但找不到这样的属性。我正在使用 .NET 4。谢谢。

【问题讨论】:

标签: asp.net .net-4.0 asp.net-ajax


【解决方案1】:

如果“endRequest” eventArgs 中没有“postback control ID”属性,则可以在“beginRequest” eventArgs 中捕获所需数据并通过临时全局变量存储。

查看“Sys.WebForms.PageRequestManager beginRequest Event”MSDN 主题的“示例”,了解有关如何捕获“回发控制”的更多信息。

【讨论】:

    猜你喜欢
    • 2010-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-03
    • 2021-07-31
    • 2012-06-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多