Web/UserControl/left_product.ascx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bll;
using System.Data;

namespace Web.UserControl
{
    public partial class left_product : Web.UserControl.UserMaster
    {
        BProductSort ibp = new BProductSort();
        BProduct objBProduct = new BProduct();
        BNews bn = new BNews();
        protected int parentindex = 1, currentindex = 1, subindex = 1;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                binddata();
            }
        }

        private void binddata()
        {
            //DataView dvparent = objBProduct.GetListValue("(select top 9 * from ProductList where P_hot=1 Order By P_Order desc)").DefaultView;
            //rptparent.DataSource = dvparent;
            //rptparent.DataBind();
            this.rptparent.DataSource = bn.GetlistValue("top 7", " where NS_Id=2");
            this.rptparent.DataBind();
        }

    }
}

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

AI 解读

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

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