开发者

Question regarding Update panel and partial postback?

suppose i have many server side controls in my update panel. so how could i kn开发者_运维技巧ow from the client side that which server side control causes partial postback in update panel. please help me with sample code.


You should register a handler for the update panel client event.

 Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(onBeginRequest);
 function onBeginRequest(sender, args) {
    var elem = args.get_postBackElement();
 }

The elem is the control you need. More info MSDN

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜