Exemple #1
0
    protected void GridView3_SelectedIndexChanged(object sender, EventArgs e)
    {
        ClientScriptManager cm    = this.ClientScript;
        UDespachos          datos = new UDespachos();
        LUser user = new LUser();

        Session["pedido"] = GridView3.SelectedRow.Cells[0].Text;
        //Session["reserva"] = GridView1.SelectedRow.Cells[0].Text;
        //Session["plato"]= GridView1.SelectedRow.Cells[1].Text;
        Int32 id_pedido = int.Parse(Session["pedido"].ToString());
        //Int32 id_plato = int.Parse(Session["plato"].ToString());
        DateTime fecha_despacho = DateTime.Now;

        datos = user.despachos1(id_pedido, fecha_despacho);
        Response.Redirect(datos.Url);
    }