コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache);
        Response.Cache.SetAllowResponseInBrowserHistory(false);
        Response.Cache.SetNoStore();

        UUser datos = new UUser();

        datos.Ispos = IsPostBack;
        LUser info = new LUser();

        //TB_id_mesa.Text = Session["id_mesa"].ToString();
        //TB_Cantidad.Text = Session["descripcion"].ToString();
        //TB_Ubicacion.Text = Session["ubicacion"].ToString();

        info.ispost(datos);
        {
            ClientScriptManager cm = this.ClientScript;
            datos.A = TB_id_mesa.Text;
            datos.B = Session["id_mesa"].ToString();
            datos.C = TB_Cantidad.Text;
            datos.D = Session["descripcion"].ToString();
            datos.E = TB_Ubicacion.Text;
            datos.F = Session["ubicacion"].ToString();
        }
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache);
        Response.Cache.SetAllowResponseInBrowserHistory(false);
        Response.Cache.SetNoStore();

        Int32   FORMULARIO = 28;
        LIdioma idioma     = new LIdioma();
        UIdioma com        = new UIdioma();


        try
        {
            int DDL = int.Parse(Session["ddl"].ToString());
            com = idioma.idiomaModificarmesa(FORMULARIO, DDL);
        }
        catch
        {
            int DDL = 1;
            com = idioma.idiomaModificarmesa(FORMULARIO, DDL);
        }

        Hashtable compIdioma = new Hashtable();

        Session["mensajes"] = compIdioma;

        //for (int i = 0; i < info.Rows.Count; i++)
        //{
        //    compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString());
        //}
        LB_modimesa.Text  = com.A;
        LB_codimesa.Text  = com.B;
        LB_cantper.Text   = com.C;
        LB_ubi.Text       = com.D;
        BT_Modificar.Text = com.E;
        Session["men"]    = com.F;


        UUser datos = new UUser();

        datos.Ispos = IsPostBack;
        LUser info = new LUser();

        //TB_id_mesa.Text = Session["id_mesa"].ToString();
        //TB_Cantidad.Text = Session["descripcion"].ToString();
        //TB_Ubicacion.Text = Session["ubicacion"].ToString();

        info.ispost(datos);
        {
            ClientScriptManager cm = this.ClientScript;
            datos.A = TB_id_mesa.Text;
            datos.B = Session["id_mesa"].ToString();
            datos.C = TB_Cantidad.Text;
            datos.D = Session["descripcion"].ToString();
            datos.E = TB_Ubicacion.Text;
            datos.F = Session["ubicacion"].ToString();
        }
    }