Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         validar_session sesion = new validar_session();
         Int32           valida = Int32.Parse(sesion.validar(Int32.Parse(Session["id_usuaro"].ToString())));
     }
     catch (Exception es)
     {
         Response.Redirect("login.aspx");
     }
 }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["id_categoria"] != null && !IsPostBack)
        {
            DDL_producto.SelectedValue = Session["id_categoria"].ToString();
        }

        try
        {
            validar_session sesion = new validar_session();
            Int32           valida = Int32.Parse(sesion.validar(Int32.Parse(Session["id_usuaro"].ToString())));
        }
        catch (Exception es)
        {
            Response.Redirect("login.aspx");
        };


        Response.Cache.SetNoStore();
    }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            validar_session sesion = new validar_session();
            Int32           valida = Int32.Parse(sesion.validar(Int32.Parse(Session["id_usuaro"].ToString())));
        }
        catch (Exception es)
        {
            Response.Redirect("login.aspx");
        }

        /* if (Session["estados"] != null && !IsPostBack)
         * {
         * DDL_catalogo.SelectedValue = Session["estados"].ToString();
         * }
         *
         * if (Session["perfil"] != null && !IsPostBack)
         * {
         *   DDL_perfilC.SelectedValue = Session["perfil"].ToString();
         * }*/
    }