protected void Btn_Solve_Click(object sender, EventArgs e) { Illegal illegal = new Illegal(); illegal.IllegalId = Convert.ToInt32(Request.QueryString["illegalId"]); illegal.IllegalSolve = this.illegalSolve.Text; illegal.IllegalScore = this.illegalScore.Text; if (illegal.UpdateSolvingIllegal()) { Response.Write("<script>alert('违规信息处理成功!');location.href='illegalInfoManage.aspx';</script>"); } else { Response.Write("<script>alert('" + illegal.ErrMessage + "');location.href='illegalInfoAudit.aspx?illegalId=" + Request.QueryString["illegalId"] + "';</script>"); } }