Monday, March 26, 2012

Executing Javascript code on UpdatePanel loading

Hi,

Is there a way to execute some Javascript function when UpdatePanel finishes rendering?

Thanks.

Hi~ you could try do something in the PreRender of updatepanel, which is supposed to be called before the page renders~
Absolutely. In the server-side method that handles the postback event, use the ClientScript.RegisterStartupScript(type,key,str,true) method

No comments:

Post a Comment