Sunday, January 30, 2011

Refresh UpdatePanel using JavaScript

In case you'd like to refresh the content of UpdatePanel by javascript (e.g. after PageMethod call, etc.), use following syntax:

__doPostBack('<%=UpdatePanel1.ClientID %>', '');

Notice, that you have to use the ClientID of the control!

No comments: