protected void Bind_GridViewMedicalNote() { string term = TextboxSearch.Text.Trim().ToLower(); List <Note> notes = therapistBLL.GetNotes(term); ViewState["GridViewMedicalNote"] = notes; GridViewMedicalNote.DataSource = notes; GridViewMedicalNote.DataBind(); UpdatePanelMedicalNote.Update(); }
protected void GridViewMedicalNote_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridViewMedicalNote.PageIndex = e.NewPageIndex; GridViewMedicalNote.DataSource = ViewState["GridViewMedicalNote"]; GridViewMedicalNote.DataBind(); }