网页弹出框ClientScript,ScriptManager

网页调用客户端弹出框
this.ClientScript.RegisterStartupScript(this.GetType(), "message", "<script>alert('!');</script>");


ajax里要这么用。
有UpdatePanel 需要用下面的代码
ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "alert('!');", true);

  

原文地址:https://www.cnblogs.com/softwaredeveloper/p/4718407.html