예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        REstauranteWS.WSObtenerOrdenSoapClient WS = new REstauranteWS.WSObtenerOrdenSoapClient();
        DataSet ds = WS.ListarOrden();

        GridView1.DataSource = ds.Tables[0];
        GridView1.DataBind();
    }
예제 #2
0
    protected void Button1_Click1(object sender, EventArgs e)
    {
        int CodigoSeleccionado = Convert.ToInt32(TextBox1.Text.ToString());

        REstauranteWS.WSObtenerOrdenSoapClient WS2 = new REstauranteWS.WSObtenerOrdenSoapClient();
        WS2.EntregarOrden(CodigoSeleccionado);
        DataSet ds = WS2.ListarOrden();

        GridView1.DataSource = ds.Tables[0];
        GridView1.DataBind();
    }