开发者

Get postback control in PageRequestManager endRequest event

开发者 https://www.devze.com 2023-04-10 15:20 出处:网络
how could I get the ID of the control that caused the postback in the PageRequestManager endRequest event?

how could I get the ID of the control that caused the postback in the PageRequestManager endRequest event?

I looked at EndRequestEventArgs with Firebug but could not find such property. I am using .NET 4. Th开发者_如何学编程ank you.


If there is no “postback control ID” property in the “endRequest” eventArgs, it is possible to capture the required data within the “beginRequest” eventArgs and store it via temporary global variable.

Take a look at the “Example” of the “Sys.WebForms.PageRequestManager beginRequest Event” MSDN topic to learn more on how to capture “postback control”.

0

精彩评论

暂无评论...
验证码 换一张
取 消