Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Utilitarios ut = new Utilitarios();

            ClubsGridView.DataSource = Clubes.Listar("*", "IdUsuario = " + ut.ObjectToInt(Session["IdUsuario"].ToString()));
            ClubsGridView.DataBind();
        }
Beispiel #2
0
        protected void BuscarButton_Click(object sender, EventArgs e)
        {
            Utilitarios ut     = new Utilitarios();
            string      Filtro = " 1=1 ";

            Filtro += "and Nombre like '%" + FiltroTextBox.Text + "%' and IdUsuario = " + ut.ObjectToInt(Session["IdUsuario"].ToString());

            ClubsGridView.DataSource = Clubes.Listar("*", Filtro);
            ClubsGridView.DataBind();
        }