Web/Accessories_Show.aspx.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
namespace Web
{
public partial class Accessories_Show : Web.UI.BasePage
{
public int kindId = (int)Channel.Pictures;
public int pcount = 0; //总条数
public int page; //当前页
public int pagesize; //设置每页显示的大小
public int classId;
public string pwhere = "IsLock=0"; //查询条件
public int Id;
public int Price;
public Model.Pictures model = new Model.Pictures();
protected void Page_Load(object sender, EventArgs e)
{
if (!int.TryParse(Request.Params["id"] as string, out Id))
{
Server.Transfer("error.aspx");
return;
}
BLL.Pictures bll = new BLL.Pictures();
if (!bll.Exists(Id))
{
Server.Transfer("error.aspx");
return;
}
if (!IsPostBack)
{
RbtBand();
}
model = bll.GetModel(Id);
//浏览数+1
bll.UpdateField(this.Id, "Click=Click+1");
}
public string RbtBand()
{
BLL.ProductPrice bll = new BLL.ProductPrice();
DataSet dsid = bll.GetList(1, "proid=" + this.Id, "id asc");
if (dsid.Tables[0].Rows.Count > 0)
{
Price = Convert.ToInt32(dsid.Tables[0].Rows[0]["id"].ToString());
}
StringBuilder strTxt = new StringBuilder();
DataSet ds = bll.GetListPJ(6, "proid=" + this.Id, "id asc");
if (ds.Tables[0].Rows.Count > 0)
{
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
DataRow dr = ds.Tables[0].Rows[i];
if (i == 0)
{
strTxt.Append("<li>");
后面还有 256 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。