Example #1
0
    protected void VerTodos_Click(object sender, EventArgs e)
    {
        ServiceB.IBuscarClient WS = new ServiceB.IBuscarClient();
        DataSet data1             = WS.GetAll();

        TextMostrar.DataSource = data1.Tables[0];
        TextMostrar.DataBind();

        ResultadoOperacion.Text = "Todos los \nproductos mostrados";
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ServiceB.IBuscarClient WS = new ServiceB.IBuscarClient();
        DataSet data1             = WS.GetAll();
        int     mayor             = TextMostrar.Rows.Count;

        if (mayor >= 0)
        {
            TextMostrar.DataSource = data1.Tables[0];
            TextMostrar.DataBind();
            ResultadoOperacion.Text = "Mostrando todos \n los productos";
        }
        else
        {
            ResultadoOperacion.Text = "Base de datos \n vacia";
        }
    }