protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //ValidaCorreo();

                Session.Clear();

                MasterFarmacia master = (MasterFarmacia)this.Master;
                master.mostrarbtnSalir(false);
                master.mostrarbtnRegresar(false);
            }

            Session.Timeout = 1440;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MasterFarmacia master = (MasterFarmacia)this.Master;
                master.mostrarbtnRegresar(false);
                master.cambiarLblTitle("<h1>Menú principal</h1>");

                iconoClientes.Visible       = false;
                iconoClientesMes.Visible    = false;
                iconoAdministracion.Visible = false;
                String permisos = "";
                try
                {
                    permisos = Session["Permisos"].ToString();
                }
                catch (Exception ex)
                {
                    Response.Redirect("Login.aspx");
                }
                foreach (String permiso in permisos.Split(','))
                {
                    switch (permiso)
                    {
                    case "11":
                    case "12":
                    case "13":
                    case "14":
                        iconoClientes.Visible = true;
                        break;

                    case "21":
                        iconoClientesMes.Visible = true;
                        break;


                    case "31":
                        iconoAdministracion.Visible = true;
                        break;
                    }
                }
            }
        }