BookShop.Web/Index.aspx.cs

(完整代码) 1KB

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

namespace BookShop.Web
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                noticeRepeater.DataSource = NoticeBLL.GetNoticeList(15, 1, "");
                noticeRepeater.DataBind();
                RecommendRepeater.DataSource = BookBLL.GetBookList(6, 1, " OnSale=2 And IsRecommend=1", "Visits", "DESC");
                RecommendRepeater.DataBind();

                hotRepeater.DataSource = BookBLL.GetBookList(6, 1, " OnSale=2 And IsHot=1", "SaleTotal", "DESC");
                hotRepeater.DataBind();

                newRepeater.DataSource = BookBLL.GetBookList(6, 1, " OnSale=2 And IsNew=1", "CreateTime", "DESC");
                newRepeater.DataBind();

                pressList.DataSource = PressBLL.GetPressList();
                pressList.DataBind();
            }
        }
        /// <summary>
        /// 绑定文章信息
        /// </summary>
        private void NoticeBindData()
        {
            //noticeRepeter.DataSource = NoticeBLL.GetNoticeList(14, 1, "", "CreateTime", "DESC");
            //noticeRepeter.DataBind();
        }

        /// <summary>
        /// 友情链接绑定
        /// </summary>
        private void FriendLinkBindData()
        {
            //friendLingDataList.DataSource = FriendLinkBLL.GetFriendLinkList(25, 1, "", "CreateTime", "ASC");
            //friendLingDataList.DataBind();
        }
    }
}

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

AI 解读 AI

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

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