Asp.Net alert弹出提示信息的5种方法

1.ClientScript.RegisterStartupScript(GetType(),"message","");
2.HttpContext.Current.Response.Write("");
3.public static void Show(System.Web.UI.Page page, string msg)
    {
        page.ClientScript.RegisterStartupScript(page.GetType(), "message", "");
    }
  Show(this, "第三种方式,无白屏!");
4.Response.Write("");

5.window.showModalDialog('XXX.aspx', '', 'dialogWidth:429px;dialogHeight:200px;location:no,menubar:no,toolbar:no,status:no');

转载于:https://www.cnblogs.com/technet/articles/1691839.html

你可能感兴趣的:(Asp.Net alert弹出提示信息的5种方法)