Exemple #1
0
 protected void BtnSearch_Click(object sender, EventArgs e)
 {
     if (TBSearch.Text != string.Empty)
     {
         if (DDSearch.SelectedValue != "-1")
         {
             objBll.Key             = TBSearch.Text;
             objBll.Index           = DDSearch.SelectedItem.Text;
             GVShortList.DataSource = null;
             GVShortList.DataSource = objBll.SearchResult();
             GVShortList.DataBind();
         }
         else
         {
             ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('Please select filter value')", true);
         }
     }
     else
     {
         ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('Searching parameter is empty')", true);
     }
 }
Exemple #2
0
 private void GetShortList()
 {
     GVShortList.DataSource = null;
     GVShortList.DataSource = objBll.GetShortListed();
     GVShortList.DataBind();
 }