Web/productlist.aspx.cs

(开头部分) 5KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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 System.Xml.Linq;

namespace CAI.SHOP.Web
{
    public partial class productlist1 : System.Web.UI.Page
    {
        CAI.SHOP.BLL.leibiex leibiexbll = new CAI.SHOP.BLL.leibiex();
        CAI.SHOP.BLL.leibie leibiebll = new CAI.SHOP.BLL.leibie();
        CAI.SHOP.BLL.product productbll = new CAI.SHOP.BLL.product();
        CAI.SHOP.BLL.shoucang shoucangbll = new CAI.SHOP.BLL.shoucang();
        CAI.SHOP.Model.shoucang shoucangmodel = new CAI.SHOP.Model.shoucang();
        protected void Page_Load(object sender, EventArgs e)
        {

            fenye();

            leibir();
            if (DataList1.Items.Count == 0)
            {
                
                Label4.Visible = true;
                Label4.Text = "暂时没有相关的数据";
            }
        }

        public void leibir()
        {
            DataSet ds = leibiexbll.GetList("classid in(select classid from leibiex where classxid='" + Request.QueryString["id"] + "')");
          //  DataSet ds=leibiexbll.GetList("classxid='" + Request.QueryString["id"] +"'");
           // Label3.Text=ds.Tables[0].Rows[0]["classid"].ToString();

            GridView1.DataSource = ds;
            GridView1.DataBind();
            DataSet dsa = productbll.GetList(8, "", "adddate desc");
            DataList2.DataSource = dsa;
            DataList2.DataBind();
        
        }
        public void fenye()
        {
            DataSet ds = productbll.GetList("classid='" + Request.QueryString["id"] + "'");

            DataView dv = ds.Tables[0].DefaultView; 
            PagedDataSource pds = new PagedDataSource();

            
            AspNetPager1.RecordCount = dv.Count;
            pds.DataSource = dv;
            pds.AllowPaging = true;
后面还有 93 行代码,购买后查看完整代码

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

AI 解读 AI

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

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