Admin/Advertisement/AdPlaceList.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Base;
public partial class SelectAdPlace : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
CheckRights("Basic", "B1");
if (!this.IsPostBack)
{
DataBindAd();
}
}
#region 绑定数据方法
private void DataBindAd()
{
string strURl = Request.RawUrl;
strURl = strURl.Substring(0, strURl.IndexOf(".aspx")) + ".aspx";
string strWhere = "1=1";
PageNo1.Strurl = strURl;
PageNo1.FldName = "T_ID";
PageNo1.Table = "W_Ad_Table";
PageNo1.StrGetFields = "*";
PageNo1.PageSize = 12;
if (Request.QueryString["page"] != "" && Request.QueryString["page"] != null)
{
PageNo1.Pageindex = Convert.ToInt32(Request.QueryString["page"].ToString());
if (Session["strWhere"] != null)
strWhere = Session["strWhere"].ToString();
PageNo1.Where = strWhere;
DataTable dt = PageNo1.BindViewDesc();
if (dt.Rows.Count == 0)
{
lblMessage.Visible = true;
lblMessage.Text = "暂无数据信息";
}
else
lblMessage.Visible = false;
GridView1.DataSource = dt.DefaultView;
GridView1.DataBind();
}
else {
if (this.TxB_Name.Text != "" || this.TxB_Name.Text != null) //广告位名称
{
strWhere += " and Ad_Name like '%" +Base.GetRequest.Filter(this.TxB_Name.Text.ToString().Trim())+ "%'";
}
if (this.TxB_Type.Text != " " || this.TxB_Type.Text != null) //广告类型
{
strWhere += " and Ad_Type like '%" + this.TxB_Type.SelectedValue.ToString().Trim() + "%'";
}
Session["strWhere"] = strWhere;
后面还有 92 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。