protected void btConfirm_Click(object sender, EventArgs e)
    {
        Admin admin = new Admin();
        Search thisSearch = new Search();
        StudentInfo thisStudent = new StudentInfo();
        string userName =HiddenField1.Value;

        thisStudent.StrStudentNO = userName;
        thisStudent.ClassId = Int32.Parse(DropDownList1.SelectedValue);

        if (admin.EditStudent(thisStudent))
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "Alert",
                "<script>alert('修改成功!')</script>");
            //程军添加,修改页面跳转,2010-01-07
            string ID= this.DropDownList1.Text;
            Response.Redirect("./Class_View.aspx?ID="+ID);
        }
        else
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "Alert",
                "<script>alert('修改失败!')</script>");
        }
    }