コード例 #1
0
ファイル: Home.aspx.cs プロジェクト: edkeran/compramatic
    protected void BTN_LogOut_Click(object sender, EventArgs e)
    {
        L_Master_Home logica = new L_Master_Home();

        logica.log_out(Session["sesion"], Session["Sesion"]);
        Session["Sesion"] = null;
        Response.Redirect("Home.aspx");
    }
コード例 #2
0
    protected void Btn_Log_Out_Click(object sender, ImageClickEventArgs e)
    {
        L_Master_Home logica = new L_Master_Home();

        logica.log_out(Session["sesion"], Session["Sesion"]);
        Session["Sesion"] = null;
        Response.Redirect("LoginUsr.aspx");
    }
コード例 #3
0
    //CAMBIAR FUNCIONALIDAD
    protected void BTN_Buscar_Click(object sender, EventArgs e)
    {
        L_Master_Home     lgc  = new L_Master_Home();
        U_aux_master_home data = new U_aux_master_home();

        data = lgc.boton_buscar(TB_Search.Text);
        Session["Tienda"] = data.Productos;
        String url = data.Url;

        MensajeModal.Text = data.Modal_Info1;
        //REDIRECCION ES UN JS
        String texto = "redireccionar_Home('" + url + "');";

        Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", texto, true);
    }
コード例 #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        L_Master_Home logica = new L_Master_Home();

        //CAMBIAR FUNCIONES
        PerfilUsr.Visible = logica.validaciones(IsPostBack, Session["Sesion"]);
        U_aux_master_home info = new U_aux_master_home();

        info = logica.generar_datos_session(IsPostBack, Session["Sesion"]);
        IMG_UsuarioBarraHome.ImageUrl  = info.RutaFoto;
        LB_NombreUsuarioBarraHome.Text = info.NomUsuario;
        Registro.Visible = info.RegistroVisible;

        //Seteando Idiomas
        L_Idioma  idiot      = new L_Idioma();
        Object    sesidioma  = Session["idiomases"];
        Int32     formulario = 7;
        Int32     idiom      = Convert.ToInt32(sesidioma);
        Hashtable compIdioma = new Hashtable();

        idiot.mostraridioma(formulario, idiom, compIdioma);
        try
        {
            this.man_usr.InnerText       = compIdioma["man_usr"].ToString();
            this.tien.InnerText          = compIdioma["tien"].ToString();
            this.tienda.InnerText        = compIdioma["tien"].ToString();
            this.pags.InnerHtml          = compIdioma["pags"].ToString() + " <i class='fa fa-angle-down'></i> <span class='arrow top'></span>";
            this.perf.InnerText          = compIdioma["perf"].ToString();
            this.about_us.InnerText      = compIdioma["about_us"].ToString();
            this.who_are.InnerText       = compIdioma["who_are"].ToString();
            this.regi.InnerHtml          = compIdioma["regi"].ToString() + " <i class='fa fa-angle-down'></i> <span class='arrow top'></span>";
            this.as_usr.InnerText        = compIdioma["as_usr"].ToString();
            this.as_company.InnerText    = compIdioma["as_company"].ToString();
            this.start_session.InnerText = compIdioma["start_session"].ToString();
            this.serv.InnerHtml          = compIdioma["serv"].ToString();
            this.A1.InnerHtml            = compIdioma["A1"].ToString();
            this.A2.InnerHtml            = compIdioma["A2"].ToString();
            this.A3.InnerHtml            = compIdioma["A3"].ToString();
            this.a4.InnerHtml            = compIdioma["a4"].ToString();
            this.a5.InnerHtml            = compIdioma["a5"].ToString();
            this.a6.InnerHtml            = compIdioma["a6"].ToString();
        }
        catch (Exception ex)
        {}
    }