Пример #1
0
 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();
 }
Пример #2
0
 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();
 }
Пример #3
0
 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();
 }
        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);
        }
Пример #5
0
        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();
        }