示例#1
0
    protected void btnVenueSearch_Click(object sender, EventArgs e)
    {
        string        searchValue = txtVenueFilter.Text;
        Venues        venue       = new Venues(_connString);
        List <Venues> tblVenues   = null;

        if (VenueSearchType.SelectedValue == "c")
        {
            searchValue = string.Format("%{0}", searchValue);
        }

        tblVenues = venue.GetVenuesLikeVenue_Name(searchValue);

        VenueGridView.DataSource = tblVenues;
        VenueGridView.DataBind();
        txtVenueFilter.Text           = string.Empty;
        VenueSearchType.SelectedIndex = -1;
    }