protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataList1.DataSource = info.GetAll();
         DataList1.DataBind();
     }
 }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Name.Enabled         = false;
            Man.Enabled          = false;
            Woman.Enabled        = false;
            JoinYear.Enabled     = false;
            QQ.Enabled           = false;
            Tel.Enabled          = false;
            Team.Enabled         = false;
            Dept.Enabled         = false;
            Duty.Enabled         = false;
            Submit.Enabled       = false;
            Cancel.Enabled       = false;
            DataList1.DataSource = info.GetAll();
            DataList1.DataBind();

            GetTeam();
            GetYear();
            GetDuty();
            GetDept();
        }
    }