Posted on: 1/18/2014 1:33:49 AM | Views : 569

I have a search button in my aspx page that user get the result of the search in the datagrid on the button of the search button. My problem is that when search returns more record so the grid has the paging at the bottom that user can go to the page2,3 and so on, when user click on page 2 it lost the search and shows all the record what should I do?

this is the search code:
protected void btn_GO_Click(object sender, EventArgs e) { if (tbx_Search.Text.Trim().Length == 0) { lbl_ErrorMessage.Visible = true; lbl_ErrorMessage.Text = "Please Enter Search Criteria."; return; } int Agencyid = Convert.ToInt32(ddlAgency.SelectedItem.Value); string filterstatus = ddlApplicationStatus.SelectedItem.Text; if (filterstatus == "All Statuses") ...

Go to the complete details ...