Backup/Web/Controls/Center4.ascx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
namespace MrZeng.Web.Controls
{
public partial class Center4 : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
HotClickGoodsBind();
HotCommentGoodsBind();
StarShopBind();
HotRecommendGoodsBind();
}
}
/// <summary>
///人气商品绑定
/// </summary>
private void HotClickGoodsBind()
{
MrZeng.BLL.P_GoodsInfo bll = new MrZeng.BLL.P_GoodsInfo();
DataSet ds = bll.GetList(5, "ClickCount>=1", "ClickCount desc");
DLClick.DataSource = ds.Tables[0].DefaultView;
DLClick.DataBind();
}
/// <summary>
///最新新店铺绑定
/// </summary>
private void StarShopBind()
{
MrZeng.BLL.P_BusinessInfo bll = new MrZeng.BLL.P_BusinessInfo();
DataSet ds = bll.GetList(5, "Activate=1", "ClickCount desc");
DLStarShop.DataSource = ds.Tables[0].DefaultView;
DLStarShop.DataBind();
}
/// <summary>
/// 热评商品绑定
/// </summary>
private void HotCommentGoodsBind()
{
MrZeng.BLL.P_GoodsInfo bll = new MrZeng.BLL.P_GoodsInfo();
DataSet ds = bll.GetList(5, "CommentCount>=1", "CommentCount desc");
DLHotComment.DataSource = ds.Tables[0].DefaultView;
DLHotComment.DataBind();
}
/// <summary>
后面还有 50 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
