public static int Record  = 0;  //定义当前符号查询的记录总数,初始化为0
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpCookie usercookie = Request.Cookies["nowloginuser"];
        string     url        = PublicClass.CheckLogin(usercookie, "main");

        if (url != "")
        {
            Response.Write(url);
            return;
        }

        if (!IsPostBack)
        {
            string bjid = Request["BjID"];
            if (bjid != null)
            {
                TbClassManager.DeleteClassInfo(int.Parse(bjid));
            }
            GetPageInfo();
            //绑定专业名称
            DataTable dt = TbSpecialityManager.BangdingZy();
            textZy.DataSource     = dt;
            textZy.DataTextField  = "ZyName";
            textZy.DataValueField = "ZyID";
            textZy.DataBind();
            textZy.Items.Insert(0, new ListItem("请选择..", "0"));
        }
    }
    /// <summary>
    /// 绑定专业信息
    /// </summary>
    public void GetSpeciality()
    {
        DataTable dt = TbSpecialityManager.BangdingZy();

        SpecID.DataSource     = dt;
        SpecID.DataTextField  = "ZyName";
        SpecID.DataValueField = "ZyID";
        SpecID.DataBind();
        SpecID.Items.Insert(0, new ListItem("请选择..", "0"));
    }