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>"); }
|
请发表评论