Probest.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BLL.Article;
using CSA.DAL;


public partial class Probest : System.Web.UI.Page
{
    protected string cur_High, kindname, title, content, name, navname;
    protected DataRow drList;
    protected DataTable dtList, dtCat, dtProClass;

    protected void Page_Load(object sender, EventArgs e)
    {
        BindProducts();
    }

    protected void BindProducts()
    {
        cur_High = Request.QueryString["High"];   //接收Code
        if (string.IsNullOrEmpty(cur_High))                //如果没有Code传进,自定义Code
        {
            cur_High = "";
        }
        string sql = "select * from bs_products where isHotSales=1 and Highquality like '%" + cur_High + "%' "+getSortno();
        dtCat = DBAccess.getRS(sql);
        int pageSize = 10;
        dtList = CSA.DAL.PageHelper.getPage(dtCat, pageSize, AspNetPager1.CurrentPageIndex);
        AspNetPager1.RecordCount = dtCat != null ? dtCat.Rows.Count : 0;
        AspNetPager1.PageSize = pageSize;
        string sql1 = "select name from bs_proproperty where id='" + cur_High + "'";
        DataTable dtKind = CSA.DAL.DBAccess.getRS(sql1);
        navname = "全部";
        if (dtKind != null && dtKind.Rows.Count > 0)
        {
            navname = dtKind.Rows[0]["name"].ToString();
        }



    }


    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        BindProducts();
    }
    protected string getSortno()
    {
        string str = "";
        string cur_sortno = Request.QueryString["sortno"];
        if (string.IsNullOrEmpty(cur_sortno))                //如果没有Code传进,自定义Code
        {
            cur_sortno = "1";
        }
        switch (cur_sortno)
后面还有 9 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。