Web/UserControl/tjcp.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;

namespace Web.UserControl
{
    public partial class tjcp : Web.UserControl.UserMaster
    {
        public int counts = 0;
        int sid = 0;
        BProduct ibp = new BProduct();
        protected void Page_Load(object sender, EventArgs e)
        {
           
            if (!base.IsPostBack)
            {
                binddata();
            }
        }
        /// <summary>
        /// 绑定推荐产品列表
        /// </summary>
        private void binddata()
        {
          
            rptnews.DataSource = ibp.GetListValue(" (select top 4 * from ProductList where P_Special=1 Order By P_Order desc)");
            rptnews.DataBind();
        }
        /// 分类编号
        /// </summary>
        public int Values
        {
            set
            {
                this.sid = value;
            }
            get
            {
                return this.sid;
            }
        }
    }
}

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

AI 解读

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

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