Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     dept.BindCollegeForDll(ddlCollege);
     ddlCollege.SelectedIndex = collegeSelectindex;
     if (!Page.IsPostBack)
     {
         speciality.BindSpecialityList(ddlCollege.SelectedValue, ddlGrade.SelectedValue, gvSpecialityList);
     }
 }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         course.BindCoursList(ddlCourseList);
         course.BindCRList(ddlClassRoomList);
         course.BindTeacherList(HttpContext.Current.User.Identity.Name, ddlTeacherList);
         speciality.BindSpecialityList(HttpContext.Current.User.Identity.Name, ddlSpeciality);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     lblTime.Text = SetTitle();
     course.BindStudentInf(HttpContext.Current.User.Identity.Name, lblTitle, ref dp_Id, ref sp_Id);
     //course.BindClassChooseTb(dp_Id, sp_Id, learn_Year, Convert.ToInt32(learn_Term), gv_ChooseClassTb);
     dept.BindCollegeForDll(ddlCollege);
     ddlCollege.Items.RemoveAt(0);
     ddlCollege.SelectedIndex = ddlCollegeSelectIndex;
     sp.BindSpecialityList(ddlCollegeSelectValue, ddlSp);
     ddlSp.SelectedIndex = ddlspSelectIndex;
     course.BindClassChooseTb(ddlCollegeSelectValue, ddlspSelectValue, DateTime.Now.AddYears(-1).Year.ToString() + "-" + DateTime.Now.Year.ToString(), ReturnTerm(), gv_ChooseClassTb);
 }
Exemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        dept.BindCollegeForDll(ddlCollegeList);
        ddlCollegeList.SelectedIndex = collegeSelectIndex;

        speciality.BindSpecialityList(collegeSelect, ddlSpeciality);
        ddlSpeciality.SelectedIndex = specialitySelectIndex;
        studentClass.BindClassList(specialitySelect, ddlClass);
        if (!Page.IsPostBack)
        {
            common.BindMZList(ddlMingZu);
            common.BindProvinceList(ddlProvince);
            common.BindZZList(ddlStuFace);
        }
    }
Exemplo n.º 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        dept.BindCollegeForDll(ddlCollege);
        ddlCollege.SelectedIndex = collegeSelectIndex;

        try
        {
            speciality.BindSpecialityList(collegeSelect, ddlSpeciality);
            ddlSpeciality.SelectedIndex = specialitySelectIndex;
            stu_class.BindeClasses(collegeSelectText, specialitySelectText, gvClasses);
        }
        catch
        {
            ddlCollege.SelectedIndex    = 0;
            ddlSpeciality.SelectedIndex = -1;
        }
    }