Call a Javascript Function after UpdatePanel Postback Issue

前端 未结 3 853
孤城傲影
孤城傲影 2020-12-16 13:54

I basically have in my UpdatePanel a literal that generates a javascript array based on a method in my codebehind.

I don\'t have an issue when it comes to loading my

3条回答
  •  猫巷女王i
    2020-12-16 14:16

    you can add the following code in Page_Load event:

    ScriptManager.RegisterStartupScript(Me.rptGridAlbum, rptGridAlbum.GetType, "scriptname", "somejavascript", True)
    

    This will fire the javascript on your page after the AJAX callback.

    MSDN

提交回复
热议问题