Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (HttpContext.Current.User.Identity.IsAuthenticated == true)
     {
         //BIZReserva.ReservaUpdateFinalizado(DateTime.Today, DateTime.Today.Hour.ToString().PadLeft(2, '0'));
         //cargarReservas();
         cargarBitacora();
     }
     else
     {
         Response.Redirect("~/Account/Login.aspx");
     }
     if (!IsPostBack)
     {
         ddlMail.DataSource = BIZDatosPersonales.SelectAll();
         ddlMail.DataBind();
         ddlMail.Items.Insert(0, new ListItem(String.Empty, String.Empty));
         ddlMail.SelectedIndex = 0;
     }
 }
Ejemplo n.º 2
0
        private void cargarZonas()
        {
            try
            {
                CultureInfo us = new CultureInfo("es-ES");
                gvUsuario.DataSource = BIZDatosPersonales.SelectAll();
                gvUsuario.DataBind();

                //Attribute to show the Plus Minus Button.
                gvUsuario.HeaderRow.Cells[0].Attributes["data-class"] = "expand";

                //Attribute to hide column in Phone.
                gvUsuario.HeaderRow.Cells[1].Attributes["data-hide"] = "phone";

                //Adds THEAD and TBODY to GridView.
                gvUsuario.HeaderRow.TableSection = TableRowSection.TableHeader;
            }
            catch (Exception)
            {
                Response.Redirect("ErrorDB.aspx");
            }
        }