YKT_EShop/_Template/Default/Member/Evaluate_Comment.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_BLL;
using YKT_Common;
using YKT_Model;
using Wuqi.Webdiyer;

namespace YKT_EShop._Template.Default.Member
{
    public partial class Evaluate_Comment : BasicPage
    {
        protected AspNetPager Pager1;
        protected AspNetPager Pager2;
        protected Repeater rpList1;
        protected Repeater rpList2;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.check_member_login())
            {
                Response.Redirect("/login.aspx?returnurl=" + HTTPS.GetCurrentUrl());
            }
            if (!this.IsPostBack)
            {
                this.Bind_rpList1();
                this.Bind_rpList2();
            }
        }

        private void Bind_rpList1()
        {
            string strWhere = "";
            int Count = 0;
            strWhere = " MemberID=" + user.ID + " and Passed=0 ";
            Pager1.UrlRewritePattern = "/member/Evaluate_Comment.aspx?page={0}";
            this.rpList1.DataSource = new BLLProductComment().GetList(Pager1.PageSize,
                Pager1.CurrentPageIndex,
                strWhere,
                ref Count).Tables[0];
            this.Pager1.RecordCount = Count;
            this.rpList1.DataBind();
        }

        private void Bind_rpList2()
        {
            string strWhere = "";
            int Count = 0;
            strWhere = " MemberID=" + user.ID + " and Passed=1 ";
            Pager2.UrlRewritePattern = "/member/Evaluate_Comment.aspx?page={0}";
            this.rpList2.DataSource = new BLLProductComment().GetList(Pager2.PageSize,
                Pager2.CurrentPageIndex,
                strWhere,
                ref Count).Tables[0];

            this.Pager2.RecordCount = Count;
            this.rpList2.DataBind();
        }
后面还有 12 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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