protected void FillSelectCampus() { //Select campus selectCampus.DataSource = campusData.DataTableUserCampus(campusData.SendCampusList(campusData.GetUserCampus(Session["User-UserName"].ToString()))); selectCampus.DataValueField = "Id"; selectCampus.DataTextField = "Name"; selectCampus.DataBind(); }
protected void FillSelectCampus(object sender, EventArgs e) { //Select Campus CampusData campusData = new CampusData(); selectCampus.DataSource = campusData.DataTableUserCampus(campusData.SendCampusList(campusData.GetUserCampus(Session["User-UserName"].ToString()))); selectCampus.DataValueField = "Id"; selectCampus.DataTextField = "Name"; selectCampus.DataBind(); FillSelectParking(sender, e); }
protected void FillSelectCampusToView() { //Select campus ti view CampusData campusData = new CampusData(); DataTable dataTableCampus = new DataTable(); if (Convert.ToInt32(Session["User-RoleId"]) == 3) dataTableCampus = campusData.DataTableCampus(); else dataTableCampus = campusData.DataTableUserCampus(campusData.SendCampusList(campusData.GetUserCampus(Session["User-UserName"].ToString()))); hiddenCampusToViewValue.Value = dataTableCampus.Rows[0]["Id"].ToString(); selectCampusToView.DataSource = dataTableCampus; selectCampusToView.DataValueField = "Id"; selectCampusToView.DataTextField = "Name"; selectCampusToView.DataBind(); }
protected void FillSelectCampusToView() { //Select campus ti view CampusData campusData = new CampusData(); DataTable dataTableCampus = new DataTable(); if (Convert.ToInt32(Session["User-RoleId"]) == 3) { dataTableCampus = campusData.DataTableCampus(); } else { dataTableCampus = campusData.DataTableUserCampus(campusData.SendCampusList(campusData.GetUserCampus(Session["User-UserName"].ToString()))); } hiddenCampusToViewValue.Value = dataTableCampus.Rows[0]["Id"].ToString(); selectCampusToView.DataSource = dataTableCampus; selectCampusToView.DataValueField = "Id"; selectCampusToView.DataTextField = "Name"; selectCampusToView.DataBind(); }
protected void FillSelectCampus() { //Select Campus CampusData campusData = new CampusData(); selectCampus.DataSource = campusData.DataTableUserCampus(campusData.SendCampusList(campusData.GetUserCampus(Session["User-UserName"].ToString()))); selectCampus.DataValueField = "Id"; selectCampus.DataTextField = "Name"; selectCampus.DataBind(); }