protected void Page_Load(object sender, EventArgs e)
        {
            Miembros  m      = new Miembros();
            DataTable dt     = new DataTable();
            string    filtro = "1=1";

            MiembrosDataGrid.DataSource = m.Listado(" * ", filtro, "");
            MiembrosDataGrid.DataBind();
        }
        protected void BtnBuscar_Click(object sender, EventArgs e)
        {
            Miembros  m      = new Miembros();
            DataTable dt     = new DataTable();
            string    filtro = "1=1";

            if (BuscarPorDropdown.SelectedIndex == 0) // MiembroId
            {
                if (TbFiltro.Text.Trim().Length == 0)
                {
                    filtro = "1=1";
                }
                else
                {
                    filtro = "MiembroId = " + TbFiltro.Text;
                }
            }

            if (BuscarPorDropdown.SelectedIndex == 1) //Nombre de miembro
            {
                if (TbFiltro.Text.Trim().Length == 0)
                {
                    filtro = "1=1";
                }
                else
                {
                    filtro = "Nombre like '%" + TbFiltro.Text + "%'";
                }
            }

            if (BuscarPorDropdown.SelectedIndex == 2) // esActivo
            {
                if (TbFiltro.Text.Trim().Length == 0)
                {
                    filtro = "1=1";
                }
                else
                {
                    filtro = "esActivo = " + TbFiltro.Text;
                }
            }

            if (BuscarPorDropdown.SelectedIndex == 3) //UsuarioId
            {
                if (TbFiltro.Text.Trim().Length == 0)
                {
                    filtro = "1=1";
                }
                else
                {
                    filtro = "UsuarioId = " + TbFiltro.Text;
                }
            }

            if (BuscarPorDropdown.SelectedIndex == 4) //apellido
            {
                if (TbFiltro.Text.Trim().Length == 0)
                {
                    filtro = "1=1";
                }
                else
                {
                    filtro = "Apellidos like '%" + TbFiltro.Text + "%'";
                }
            }

            if (BuscarPorDropdown.SelectedIndex == 5) //parentesco
            {
                if (TbFiltro.Text.Trim().Length == 0)
                {
                    filtro = "1=1";
                }
                else
                {
                    filtro = "Parentesco like '%" + TbFiltro.Text + "%'";
                }
            }
            dt = m.Listado("MiembroId, Nombre, esActivo, UsuarioId, Apellidos, Parentesco ", filtro, "");
            MiembrosDataGrid.DataSource = dt;
            MiembrosDataGrid.DataBind();
        }