protected void danger(string canshu) { security sc = new security(); if (sc.CheckBadStr(canshu) == 1) { Response.Redirect("alert.aspx"); } if (sc.CheckBadStr(canshu) == 2) { ClientScript.RegisterStartupScript(GetType(), "", "<script>alert(\"内容填写不完全,请重新填写!\")</script>"); } }