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); } }
private void GetShortList() { GVShortList.DataSource = null; GVShortList.DataSource = objBll.GetShortListed(); GVShortList.DataBind(); }