Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Usermanager"] == null)
        {
            Response.Redirect("~/Login.aspx");
        }
        else
        {
            if (!IsPostBack)
            {
                //填充DropDownlist控件
                this.ddlCompany.DataSource     = ComMan.GetAllCarrieCompany();
                this.ddlCompany.DataTextField  = "CoName";
                this.ddlCompany.DataValueField = "Cid";
                ddlCompany.DataBind();
                //调用方法填充数据gridview控件


                allInfo             = RegMan.GetAllRegisterTB();
                anpPage.RecordCount = allInfo.Count;
                DisPlay();
            }
        }
    }