protected void Page_Load(object sender, EventArgs e) { Page.Form.DefaultFocus = TextBoxSearch.ClientID; Page.Form.DefaultButton = ButtonSearch.UniqueID; if (!IsPostBack) { string searchValue = "%"; GridViewResult.DataSource = InsightSupplierContact.GetInsightSupplierContactListByFilter(searchValue); GridViewResult.DataBind(); } }
protected void ButtonSearch_Click(object sender, EventArgs e) { GridViewResult.DataSource = InsightSupplierContact.GetInsightSupplierContactListByFilter("%" + TextBoxSearch.Text + "%"); GridViewResult.DataBind(); }