private void fillGv() { DropSemester obj = new DropSemester(); DataTable TBL1 = obj.dtNotAcceptDropSemesterAcademicAdvisorApplication(); gvDropSemester.DataSource = TBL1; gvDropSemester.DataBind(); }
protected void ddlRequest_SelectedIndexChanged(object sender, EventArgs e) { int ID = Convert.ToInt32(Session["ID"].ToString()); if (ddlRequest.SelectedIndex != 0 && ddlRequest.SelectedIndex != -1) { if (Convert.ToInt32(ddlRequest.SelectedValue.ToString()) == 4) { AlternativeSub obj = new AlternativeSub(); DataTable dt = obj.dtNotAcceptAliSubAcademicAdvisorApplication(ID); gvRequest.DataSource = dt; gvRequest.DataBind(); } else if (Convert.ToInt32(ddlRequest.SelectedValue.ToString()) == 5) { DropSemester obj = new DropSemester(); DataTable dt = obj.dtNotAcceptDropSemesterAcademicAdvisorApplication(ID); gvRequest.DataSource = dt; gvRequest.DataBind(); } } }