protected void Bind_GridViewTherapistSendNote() { string term = TextBoxSearchTherapist.Text.Trim().ToLower(); List <Classes.Entity.Therapist> therapists = therapistBLL.GetTherapists(term); ViewState["GridViewTherapistSendNote"] = therapists; GridViewTherapistSendNote.DataSource = therapists; GridViewTherapistSendNote.DataBind(); UpdatePanelSendNote.Update(); }
protected void GridViewTherapistSendNote_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridViewTherapistSendNote.PageIndex = e.NewPageIndex; GridViewTherapistSendNote.DataSource = ViewState["GridViewTherapistSendNote"]; GridViewTherapistSendNote.DataBind(); }