Patrik
Patrik

Reputation: 1129

Retrieve if an Updatepanel has made a postback

Can somebody tell me if I can retrieve with JavaScript above the ASP.NET Updatepanel had made a asynchronous postback ?

Thank's for help !

Upvotes: 1

Views: 112

Answers (1)

user1921
user1921

Reputation:

Have you tried registering a startup script in the updatepanel? Something like this:

ScriptManager.RegisterStartupScript(this.UpdatePanelID, typeof(string), "UpdatePanelScript", "alert('From the UpdatePanel');", true);

Here's a link to the documentation: http://msdn.microsoft.com/en-us/library/bb359558.aspx

Upvotes: 1

Related Questions