protected void ASPxButton2_Click(object sender, EventArgs e)
{
//Response.Write("<script>alert('删除成功!')</script>");

WebMessageBox(this.Page, "*******");

}

public static void WebMessageBox(System.Web.UI.Page page, string values)
{
page.ClientScript.RegisterStartupScript(page.GetType(), "", "<script language=javascript>alert('" + values + "')</script>");
}


public static void WebMessageBox(System.Web.UI.Page page, string msg, string href)
{
page.ClientScript.RegisterStartupScript(page.GetType(), "", "<script language='javascript'>alert('" + msg + "');window.location.href='" + href + "';</script>");
}

posted on 2019-01-15 10:54  qqhfeng16  阅读(376)  评论(0编辑  收藏  举报