网页弹出框ClientScript,ScriptManager

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


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

  

posted @ 2015-08-10 16:35  想念熊小米  阅读(481)  评论(0编辑  收藏  举报