Reputation: 34208
suppose i have many server side controls in my update panel. so how could i know from the client side that which server side control causes partial postback in update panel. please help me with sample code.
Upvotes: 0
Views: 231
Reputation: 3563
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
Upvotes: 1