VideoHome.Web/admin/Film/UserCenter/MemberGoldList.aspx.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

using myfilm.Entity;
using myfilm.Vod;
using myfilm.Common;
namespace myfilm.Web.UserCenter
{
    public partial class MemberGoldList : UserPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                BindData();
            }
        }


        public string seefilm(object CourseId)
        {
            if (!CourseId.Equals(DBNull.Value))
            {
                if (Convert.ToInt32(CourseId) > 0)
                {
                    return "[ <a href='/Film_" + CourseId + ".aspx' target='_blank' style='color:Blue'>查看</a> ]";
                }
            }
            return "";
        }
        private void BindData()
        {

            string sWhere = "1=1 and userid="+userid;

            this.txtjinfencout.Text=  tb_PlayLog.GetFilterJBCount(userid.ToString());
            
            PagedDataSource pds = new PagedDataSource();
            pds.AllowPaging = true;
            pds.PageSize = AspNetPager1.PageSize;
            pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
            DataTable dt = tb_PlayLog.GetFilterGoldRecordData(sWhere);
            pds.DataSource = dt.DefaultView;
            AspNetPager1.RecordCount =dt.Rows.Count;
            gv1.DataSource = pds;
            gv1.DataBind();
        }

        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            BindData();
        }
       
    }
后面还有 1 行代码,购买后查看完整代码

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

AI 解读 AI

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

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