private void BindMemberList(string searchfor) { if (Session["_searchfor"] != null) { searchfor = Session["_searchfor"].ToString(); Session["SearchFilter"] = "Name," + searchfor; } Members.DataSource = Snitz.BLL.Members.GetAllMembers("", CurrentPage, 15); Members.DataBind(); int totalmembers = Snitz.BLL.PrivateMessages.GetMemberCount(searchfor); _pages = Common.CalculateNumberOfPages(totalmembers, 11); numPages.Text = _pages.ToString(); }
protected void ClearBtn_Click(object sender, EventArgs e) { ViewState["SearchText"] = ""; Members.DataBind(); }