Пример #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;
             GVInterview.DataSource = null;
             GVInterview.DataSource = objBll.SearchResult();
             GVInterview.DataBind();
         }
         else
         {
             ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('Please select filter value')", true);
         }
     }
     else
     {
         ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('Searching parameter is empty')", true);
     }
 }
Пример #2
0
 public void GetInt()
 {
     GVInterview.DataSource = null;
     GVInterview.DataSource = objBll.GetInterviewed();
     GVInterview.DataBind();
 }