예제 #1
0
        protected void btnNome1_Click(object sender, EventArgs e)
        {
            string idComanda = (sender as Button).CommandArgument;

            Session["idCurrentUser"] = idComanda;

            string nome = ControllerComanda.getNomeComanda(Convert.ToInt32(idComanda));

            Session["currentUser"] = nome;

            Response.Redirect("~/Mobile/Pages/produtosCategoria.aspx");
        }
예제 #2
0
        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            //Resgata o argumento que foi configurado para cada LinkButton
            string idComanda = (sender as LinkButton).CommandArgument;

            Session["idCurrentUser"] = idComanda;

            string nome = ControllerComanda.getNomeComanda(Convert.ToInt32(idComanda));

            Session["currentUser"] = nome;

            Response.Redirect("~/Mobile/Pages/produtosCategoria.aspx");
        }