Ejemplo n.º 1
0
        private void mnuAdministrarClientes_Click(object sender, EventArgs e)
        {
            ListaClientes formListaClientes = new ListaClientes();

            formListaClientes.MdiParent = this;
            formListaClientes.Show();
        }
Ejemplo n.º 2
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     try
     {
         ListaClientes.SelectCommand = "SELECT ID_Cliente, NIT, Nombre, Apellidos, Direccion, Telefono, Celular, Empresa, Correo FROM Cliente WHERE (Estado = 1) AND (Nombre LIke '%" + TextBox3.Text + "%' OR NIT like '%" + TextBox3.Text + "%')";
         ListaClientes.DataBind();
     }
     catch
     {
         Response.Write("<script>alert('Ingrese algun dato valido!')</script>");
     }
 }