protected void BindData() { List <ZhaopinItem> ls = FTInterviewBLL.ZhaopinItemManage.GetAllZhaopinItemList(); ZpitmGridview.DataSource = ls; AspNetPagerAskAnswer.RecordCount = ls.Count; ZpitmGridview.DataBind(); }
protected void SearchButton_Click(object sender, EventArgs e) { string _name = ZpitemName.Value; if (_name != "") { List <ZhaopinItem> ls = FTInterviewBLL.ZhaopinItemManage.GetAllZhaopinItemListByTitle(_name); ZpitmGridview.DataSource = ls; AspNetPagerAskAnswer.RecordCount = ls.Count; ZpitmGridview.DataBind(); } else { BindData(); } }
protected void SearchButton_Click(object sender, EventArgs e) { HttpCookie c*k = Request.Cookies["ftcook"]; if (c*k != null) { msgid = Convert.ToInt32(c*k["kgid"]); } string _name = ZpitemName.Value; List <ZhaopinItem> ls = FTInterviewBLL.ZhaopinItemManage.GetAllZhaopinItemListWithKgaoguan(msgid, _name); ZpitmGridview.DataSource = ls; AspNetPagerAskAnswer.RecordCount = ls.Count; ZpitmGridview.DataBind(); }