Ejemplo n.º 1
0
        void Bind()
        {
            string Where = "";

            Repeater_list.DataSource = ___ROYcms_Blog_user_bll.GetList(30, Where, "id desc");
            Repeater_list.DataBind();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Binds this instance.
        /// </summary>
        void Bind()
        {
            if (this.keyword == null || this.keyword == "")
            {
                this.keyword = "请输入关键字";
            }
            int page = 0;

            string where = "";
            if (Request["page"] != null && Request["page"] != "")
            {
                page = Convert.ToInt32(Request["page"]) - 1;
            }
            if (DropDownList_type.SelectedValue != "")
            {
                where = DropDownList_type.SelectedValue + " like '%" + this.keyword + "%' ";
            }
            else
            {
                where = " title like '%" + this.keyword + "%' ";
            }
            this.PageCont = ___ROYcms_news_Bll.GetCount(where) / 30 + 1; //分页的总数
            PagedDataSource pg = new PagedDataSource();

            pg.DataSource            = ___ROYcms_news_Bll.GetList(where + " order by bh desc ").Tables[0].DefaultView;
            pg.AllowPaging           = true;
            pg.PageSize              = 30;
            pg.CurrentPageIndex      = page;
            Repeater_list.DataSource = pg;
            Repeater_list.DataBind();
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 void Bind()
 {
     Repeater_list.DataSource = ___ROYcms_Flash_bll.GetList("id>0 order by id desc ");
     Repeater_list.DataBind();
     Repeater_MyList.DataSource = ___ROYcms_Flash_bll.GetList("user_id=" + ROYcms.Common.Session.Get("user_id"));
     Repeater_MyList.DataBind();
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 void _Bind()
 {
     try
     {
         Repeater_list.DataSource = ___ROYcms_Class_UGroup_bll.GetList(" UGroup_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("ugroup_id")));
         Repeater_list.DataBind();
     }
     catch { ROYcms.Common.MessageBox.Show(this, "该用户未绑定用户组或者无任何发布信息的权限!"); }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 绑定数据    Binds this instance.
 /// </summary>
 void Bind()
 {
     try
     {
         ROYcms.Sys.BLL.ROYcms_remark bll = new ROYcms.Sys.BLL.ROYcms_remark();
         Repeater_list.DataSource = bll.GetList(" NewID =" + Request["NewsId"]);
         Repeater_list.DataBind();
     }
     catch { ROYcms.Common.MessageBox.Show(this, "绑定数据错误!"); }
 }
Ejemplo n.º 6
0
        void Bind()
        {
            string Where = "user_id=" + this.User_id;

            if (Request["Tag"] != null)
            {
                Where = "user_id=" + this.User_id + " and tag like '%" + Request["Tag"] + "%' ";
            }
            Repeater_list.DataSource = ___ROYcms_Blog_bll.GetList(15, Where, "id desc");
            Repeater_list.DataBind();
        }
Ejemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 void Bind()
 {
     try
     {
         Repeater_list.DataSource = ___ROYcms_UGroup_Workflow_bll.GetList(" UGroup_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("ugroup_id")));
         Repeater_list.DataBind();
     }
     catch {
         ROYcms.Common.MessageBox.Show(this, "运行出错! 该会员不属于有效的权限小组");
     }
 }
Ejemplo n.º 8
0
        void Bind()
        {
            if (Request["tag"] != null)
            {
                Repeater_list.DataSource = ___ROYcms_question_bll.GetList("tag like '%" + Server.UrlDecode(Request["tag"]) + "%'");
                Repeater_list.DataBind();
            }
            else
            {
                Repeater_list.DataSource = ___ROYcms_question_bll.GetAllList();
                Repeater_list.DataBind();
            }

            Repeater_tag.DataSource = ___ROYcms_Tag_bll.GetList("type = 'ASK'");
            Repeater_tag.DataBind();
        }
Ejemplo n.º 9
0
 void Bind()
 {
     if (Request["id"] != null)
     {
         ___ROYcms_question_model = ___ROYcms_question_bll.GetModel(Convert.ToInt32(Request["id"]));
         if (___ROYcms_question_model != null)
         {
             title.Text    = ___ROYcms_question_model.title;
             content.Text  = ___ROYcms_question_model.content;
             ip.Text       = ___ROYcms_question_model.ip;
             time.Text     = ___ROYcms_question_model.end_time.ToString();
             username.Text = ___GetUserDate("{name}", ___ROYcms_question_model.user_id);
         }
         Repeater_list.DataSource = ___ROYcms_result_bll.GetList("question_id=" + Request["id"]);
         Repeater_list.DataBind();
     }
 }
Ejemplo n.º 10
0
        /// <summary>
        ///
        /// </summary>
        void Bind()
        {
            string where = null;
            where       += "id>-1";

            try
            {
                Repeater_list.DataSource = BLL.GetList(Convert.ToInt32(Application["PageSize"]), Convert.ToInt32(ViewState["Page"]), where);
                Repeater_list.DataBind();
                ViewState["PageCon"]     = BLL.GetCount(where) / Convert.ToInt32(Application["PageSize"]) + 1;
                ViewState["PageContent"] = BLL.GetCount(where);
            }
            catch //异常处理
            {
                Repeater_list.DataSource = null;
                Repeater_list.DataBind();
            }
        }
Ejemplo n.º 11
0
        void Bind()
        {
            if (Request["id"] != null)
            {
                ___ROYcms_Community_model = ___ROYcms_Community_bll.GetModel(Convert.ToInt32(Request["id"]));
                if (___ROYcms_Community_model != null)
                {
                    this.Page.Title     = ___ROYcms_Community_model.title + " - " + ___GetConfigValue("title");
                    this.title.Text     = ___ROYcms_Community_model.title;
                    this.content.Text   = ___ROYcms_Community_model.content;
                    this.Time.Text      = ___ROYcms_Community_model.end_time.ToString();
                    this.ip.Text        = ___ROYcms_Community_model.ip;
                    this.user_name.Text = (___ROYcms_Community_model.user_id == "" ? "匿名用户" : ___GetUserDate("{name}", ___ROYcms_Community_model.user_id));
                }
                Repeater_list.DataSource = ___ROYcms_Community_result_bll.GetList("Community_id=" + Request["id"]);
                Repeater_list.DataBind();
            }

            Repeater_list_.DataSource = ___ROYcms_Community_bll.GetList(6, "", "bh desc");
            Repeater_list_.DataBind();
        }
Ejemplo n.º 12
0
 void Bind()
 {
     Repeater_list.DataSource = ___ROYcms_Blog_result_bll.GetList(10, "id>0", "id desc");
     Repeater_list.DataBind();
 }
Ejemplo n.º 13
0
 /// <summary>
 ///
 /// </summary>
 void Bind()
 {
     Repeater_list.DataSource = BlogBLL.GetAllList();
     Repeater_list.DataBind();
 }
Ejemplo n.º 14
0
 /// <summary>
 ///
 /// </summary>
 void LIST_bind()
 {
     Repeater_list.DataSource = bll.GetAllList();
     Repeater_list.DataBind();
 }
Ejemplo n.º 15
0
 void Bind()
 {
     Repeater_list.DataSource = ___ROYcms_Community_bll.GetAllList();
     Repeater_list.DataBind();
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Binds this instance.
 /// </summary>
 void Bind()
 {
     Repeater_list.DataSource = new ROYcms.Sys.BLL.ROYcms_Rss().GetList("User_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("user_id")));
     Repeater_list.DataBind();
 }
Ejemplo n.º 17
0
 void Bind()
 {
     Repeater_list.DataSource = ___ROYcms_question_bll.GetAllList();
     Repeater_list.DataBind();
 }
Ejemplo n.º 18
0
 void Bind()
 {
     Repeater_list.DataSource = ___ROYcms_Community_result_bll.GetList(10, "", "bh desc");
     Repeater_list.DataBind();
 }
Ejemplo n.º 19
0
 /// <summary>
 ///
 /// </summary>
 void Bind()
 {
     Repeater_list.DataSource = ___ROYcms_New_User_bll.GetList("User_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("user_id")));
     Repeater_list.DataBind();
 }
Ejemplo n.º 20
0
 void Bind()
 {
     Repeater_list.DataSource = ___ROYcms_Blog_result_bll.GetList(10, "blog_id=" + Request["id"], "id desc");
     Repeater_list.DataBind();
 }
Ejemplo n.º 21
0
 /// <summary>
 ///
 /// </summary>
 void Bind()
 {
     Repeater_list.DataSource = ___ROYcms_New_User_bll.GetList(30, Convert.ToInt32(Request["page"] == null ? "1" : Request["page"]), "User_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("user_id")), 1);
     Repeater_list.DataBind();
 }