Esempio n. 1
0
    protected void ddlSearchCategory1_SelectedIndexChanged(object sender, EventArgs e)
    {
        DataTable  ds = new DataTable();
        GeneralBAL lp = new GeneralBAL();

        ds = lp.FetchFestivalGridDetails(ddlSearchCategory1.SelectedItem.Text);

        grdFestival.DataSource = ds;
        grdFestival.DataBind();
    }
Esempio n. 2
0
 protected void gridPageChanging(object sender, GridViewPageEventArgs e)
 {
     if (ddlSearchCategory.SelectedItem.Text == "Select" & ddlSearchCategory1.SelectedItem.Text == "Select")
     {
         DataSet     ds1 = new DataSet();
         FestivalBAL fs  = new FestivalBAL();
         ds1 = fs.FetchFestival();
         grdFestival.DataSource = ds1.Tables[0];
         grdFestival.PageIndex  = e.NewPageIndex;
         grdFestival.DataBind();
     }
     else
     {
         DataTable  ds = new DataTable();
         GeneralBAL lp = new GeneralBAL();
         ds = lp.FetchFestivalGridDetails(ddlSearchCategory1.SelectedItem.Text);
         grdFestival.DataSource = ds;
         grdFestival.PageIndex  = e.NewPageIndex;
         grdFestival.DataBind();
     }
 }
Esempio n. 3
0
 protected void gridPageChanging(object sender, GridViewPageEventArgs e)
 {
     if (ddlSearchCategory.SelectedItem.Text == "Select" & ddlSearchCategory1.SelectedItem.Text == "Select")
     {
         DataSet ds1 = new DataSet();
         FestivalBAL fs = new FestivalBAL();
         ds1 = fs.FetchFestival();
         grdFestival.DataSource = ds1.Tables[0];
         grdFestival.PageIndex = e.NewPageIndex;
         grdFestival.DataBind();
     }
     else
     {
         DataTable ds = new DataTable();
         GeneralBAL lp = new GeneralBAL();
         ds = lp.FetchFestivalGridDetails(ddlSearchCategory1.SelectedItem.Text);
         grdFestival.DataSource = ds;
         grdFestival.PageIndex = e.NewPageIndex;
         grdFestival.DataBind();
     }
 }
Esempio n. 4
0
    protected void ddlSearchCategory1_SelectedIndexChanged(object sender, EventArgs e)
    {
        DataTable ds = new DataTable();
        GeneralBAL lp = new GeneralBAL();
        ds = lp.FetchFestivalGridDetails(ddlSearchCategory1.SelectedItem.Text);

        grdFestival.DataSource = ds;
        grdFestival.DataBind();
    }