Web/Vodeo.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 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;
using Common;

namespace Web
{
    public partial class Vodeo : Web.UI.BasePage
    {
        public int kindId = 9;
        public int pcount = 0; //总条数
        public int page; //当前页
        public int pagesize; //设置每页显示的大小
        protected int totalcount;   //OUT数据总数
        public int classId;
        public string pwhere = "IsLock=0"; //查询条件

        protected void Page_Load(object sender, EventArgs e)
        {
            this.pagesize = SiteConfig.ArticlePageNum_Client; //取得配置文件的显示条数
            if (!int.TryParse(Request.Params["classId"] as string, out classId))
            {
                //Server.Transfer("error.aspx");
                //return;
                classId = 0;
            }
            //取得当前页
            if (!int.TryParse(Request.Params["page"] as string, out page))
            {
                page = 0;
            }
            //查询条件,查找该类别及下面的所有记录
            if (classId > 0)
            {
                pwhere += " and ClassId in(select Id from dt_Channel where KindId=" + kindId + " and ClassList like '%," + classId + ",%')";
            }
            else
            {
                pwhere += " and ClassId in(select Id from dt_Channel where KindId=" + kindId + ")";
            }
            //获得总条数
            pcount = new BLL.Vodeos().GetCount(pwhere);
            //切记绑定一下页面,Repeater属性的变量才会生效,如果你Repeater属性没有变量,下面这句可以忽略
            this.DataBind();
        }
        #region 查找归类标题
        protected string ViewKind(int _kindId)
        {
            switch (_kindId)
            {
                case (int)Channel.Article:
                    return "资讯模块";
                    break;
后面还有 95 行代码,购买后查看完整代码

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

AI 解读 AI

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

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