BookShop.Web/List.aspx.cs

(开头部分) 11KB

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

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

using BookShop.Model;
using CTL.Common;

namespace BookShop.Web
{
    public partial class List : System.Web.UI.Page
    {

        /// <summary>
        /// 搜索条件
        /// </summary>
        private Model.SerachCondition serachConditionInfo = null;
        /// <summary>
        /// 页面加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        /// <summary>
        /// 绑定数据
        /// </summary>
        private void BindData()
        {


            int cateId = Utils.StrToInt(Requests.All("cateid"));
            int pressId = Utils.StrToInt(Requests.All("pressid"));
            int ishot = Utils.StrToInt(Requests.All("h"));
            int isnew = Utils.StrToInt(Requests.All("n"));
            string keyword = Requests.All("k");
            string orderBy = Requests.All("o") == "" ? "SaleTotal" : Requests.All("o");
            string softBy = Requests.All("s") == "" ? "DESC" : Requests.All("s");


            if (cateId > 0)
            {
                pager.SetItem("cateid", cateId);
            }

            if (pressId > 0)
            {
                pager.SetItem("pressid", pressId);
            }

            if (orderBy != "")
后面还有 240 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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