且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ScriptManager.RegisterStartUpScript(......)不工作

更新时间:2023-12-05 23:20:16

您code应该工作,除非你有一个更新面板内你的ASP控制。
如果再使用这个代替。

Your code should work unless you have your ASP controls inside an update panel. If you do then use this instead.

ScriptManager.RegisterStartupScript(updatePanel,updatePanel.GetType()
                                                  , "alert", javaScript, true);