示例#1
0
        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();
        }
示例#2
0
 protected void ClearBtn_Click(object sender, EventArgs e)
 {
     ViewState["SearchText"] = "";
     Members.DataBind();
 }