更新时间: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);