2.HttpContext.Current.Response.Write("<script>alert('第二种体式格局,有白屏!')</script>");
3.public static void Show(System.Web.UI.Page page, string msg)
{
page.ClientScript.RegisterStartupScript(page.GetType(), "message", "<script language='javascript' defer>alert('" + msg.ToString() + "');</script>");
}
Show(this, "第三种体式格局,无白屏,不变形!");
4.Response.Write("<script>alert('第四种体式格局,有白屏!')</script>");
5.window.showModalDialog('XXX.aspx', '', 'dialogWidth:429px;dialogHeight:200px;location:no,menubar:no,toolbar:no,status:no');
6.Page.clientscript.registerstartupscript(this.gettype(), "", "<script>window.open('../issue/issueallcomment.aspx');</script>");
即可处理.
7.
运用ajax组件的函数,以下:
System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), "opennewwindow", "alert('弹出框内容!');", true);
8.
在页面的body的末了一行安排一个控件,并在代码页里给这个控件赋值,如:
label.Text="<script>alert('弹出框内容!); </script> ";
更多Asp.Net alert弹出提醒信息的几种要领总结相干文章请关注ki4网!