protected void Page_Load(object sender, EventArgs e)
        {
            this.channel_id      = DTRequest.GetQueryInt("channel_id");
            this.navigation_name = DTRequest.GetCookieByName("dt_manage_navigation_cookie");
            this.category_id     = DTRequest.GetQueryInt("category_id");
            //this.keywords = DTRequest.GetQueryString("keywords");
            this.property = DTRequest.GetQueryString("property");

            if (channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back", "Error");
                return;
            }
            this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
            this.pageSize     = GetPageSize(GetType().Name + "_page_size");        //每页数量
            this.prolistview  = Utils.GetCookie("article_list_view");              //显示方式
            if (!Page.IsPostBack)
            {
                ChkAdminLevel(this.navigation_name, DTEnums.ActionEnum.View.ToString()); //检查权限
                var keywords = DTRequest.GetQueryString("keywords");                     //关键字查询
                if (!string.IsNullOrEmpty(keywords))
                {
                    txtKeywords.Text = keywords;
                }
                SetCategory(); //绑定类别
                RptBind(this.channel_id, this.category_id, "id>0" + CombSqlTxt(txtKeywords.Text, this.property), "sort_id asc,add_time desc,id desc");
            }
        }
示例#2
0
 //页面初始化事件
 protected void Page_Init(object sernder, EventArgs e)
 {
     this.channel_id      = DTRequest.GetQueryInt("channel_id");
     this.categoryId      = DTRequest.GetQueryInt("category_id");
     this.navigation_name = DTRequest.GetCookieByName("dt_manage_navigation_cookie");
     CreateOtherField(this.channel_id); //动态生成相应的扩展字段
 }