Thomas
Thomas

Reputation: 34208

Question regarding Update panel and partial postback?

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

Answers (1)

Andrei Schneider
Andrei Schneider

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

Related Questions