Does the ClientScriptmanager work when called in a partial postback?

前端 未结 1 472
不知归路
不知归路 2021-01-21 00:08

I would like to close the browser window when an ASP.NET operation has succeeded. The code below is triggered by a button that resides in an Ajax UpdatePanel.

Pa         


        
相关标签:
1条回答
  • 2021-01-21 00:59

    This link by Scott Klueppel helped me solve the problem...

    Rather use...

    ScriptManager.RegisterStartupScript 
    

    instead of

    Page.ClientScript.RegisterClientScriptBlock.
    
    0 讨论(0)
提交回复
热议问题