1 // 错误提示 2 protected void ReportError(string error) 3 { 4 string message = "<script language=‘javascript‘ defer>alert(‘" + error + "‘);</script>"; 5 Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", message); 6 }
时间: 2024-11-08 23:02:08