allCaiDan.aspx.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class allCaiDan : System.Web.UI.Page
{
protected string listHtml;
protected string pageHtml;
protected string typeHtml;
protected int pageCount;
protected string recommHtml,CTypeHtml;
protected void Page_Load(object sender, EventArgs e)
{
string pageCurr = Request.QueryString["pageCurr"];
string jum = Request.Form["jum"];
string CType = Request.QueryString["CType"];
string sqlCount;//= "select Count(*) from CaiInfo";
string sqlDt;
string selectInfo = Request.QueryString["select_name"];
string recomm = Request.QueryString["recomm"];
if (string.IsNullOrEmpty(CType))
{
CType = Request.Form["CType"];
}
if (string.IsNullOrEmpty(recomm))
{
recomm = Request.Form["recomm"];
}
CTypeHtml = CType;
recommHtml = recomm;
if (!string.IsNullOrEmpty(recomm))
{//这里写每日推荐的
if (string.IsNullOrEmpty(pageCurr))
{
pageCurr = "1";
}
else if (Convert.ToInt32(pageCurr) < 1)
{
pageCurr = "1";
}
sqlDt = "select * from (select ROW_NUMBER() over(order by CaiINfo.ID) as rowNum,CType.CType,CaiInfo.* from CaiInfo inner join dbo.CType on CaiInfo.CTypeID=CType.Id where CName like '%" + selectInfo + "%' and "+recomm+"=1) as C where rowNum between " + ((Convert.ToInt32(pageCurr) - 1) * 6 + 1) + " and " + (Convert.ToInt32(pageCurr) * 6);
sqlCount = "select Count(*) from CaiInfo where CName like '%" + selectInfo + "%' and "+recomm+"=1";
int itemCount = DAL.ExecuteScalar(sqlCount);
if (itemCount % 6 > 0)
{
pageCount = itemCount / 6 + 1;
}
else
{
pageCount = itemCount / 6;
}
if (!string.IsNullOrEmpty(jum))
后面还有 370 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
