MxWeiXinPF.Web/admin/wfangchan/fyyxMgr.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
using System.Text;
namespace MxWeiXinPF.Web.admin.wfangchan
{
public partial class fyyxMgr : Web.UI.ManagePage
{
protected int totalCount;
protected int page;
protected int pageSize;
protected int fid;
protected string keywords = "";
BLL.wx_fc_fyImpression bll = new BLL.wx_fc_fyImpression();
protected void Page_Load(object sender, EventArgs e)
{
this.keywords = MXRequest.GetQueryString("keywords");
fid = MXRequest.GetQueryInt("id");
this.pageSize = GetPageSize(10); //每页数量
if (!Page.IsPostBack)
{
RptBind(CombSqlTxt(keywords), "sort_id asc,id asc");
}
}
#region 数据绑定=================================
private void RptBind(string _strWhere, string _orderby)
{
Model.wx_userweixin weixin = GetWeiXinCode();
_strWhere = "wId=" + weixin.id + " " + _strWhere;
_strWhere += " and fid=" + fid;
this.page = MXRequest.GetQueryInt("page", 1);
txtKeywords.Text = this.keywords;
this.rptList.DataSource = bll.GetList(this.pageSize, page, _strWhere, _orderby, out totalCount);
this.rptList.DataBind();
//绑定页码
txtPageNum.Text = this.pageSize.ToString();
string pageUrl = Utils.CombUrlTxt("fyyxMgr.aspx", "keywords={0}&page={1}&id={2}", this.keywords, "__id__", this.fid.ToString());
PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
}
#endregion
#region 组合SQL查询语句==========================
protected string CombSqlTxt(string _keywords)
{
StringBuilder strTemp = new StringBuilder();
_keywords = _keywords.Replace("'", "");
if (!string.IsNullOrEmpty(_keywords))
{
strTemp.Append(" and content like '%" + _keywords + "%' ");
}
后面还有 68 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
