Example #1
0
        protected void SetSuccesNews()
        {
            var fdate = DateTime.Now.ToString("yyyy-MM-dd");
            var tdate = DateTime.Now.AddMonths(-6).ToString("yyyy-MM-dd");

            DataTable news = SiteFrontend.FrontCases.GetsucessList(0, fdate, tdate, 0);

            CatRepeater.DataSource = news;
            CatRepeater.DataBind();
        }
Example #2
0
        private void MakeHTMLTree()
        {
            /*
             * LiteralControl literalControl;
             * //logger.Debug("_contentID == 0 " + (_contentID == 0));
             *
             * if (_contentID == 0)
             * {
             *  int count = 0;
             *  foreach (DataRow child in ContentsTable.Rows)
             *  {
             *      if (count == 0 )
             *      {
             *          literalControl = new LiteralControl(String.Format("<li class='current'><a href='{0}'>{1}</a></li>\n",
             *              "/Categories/Category.aspx?CategoryID=" + _categoryID.ToString() + "&ContentID=" + child["ContentID"].ToString(),
             *              child["ContentTitle"].ToString()));
             *      }
             *      else
             *      {
             *          literalControl = new LiteralControl(String.Format("<li><a href='{0}'>{1}</a></li>\n",
             *              "/Categories/Category.aspx?CategoryID=" + _categoryID.ToString() + "&ContentID=" + child["ContentID"].ToString(),
             *              child["ContentTitle"].ToString()));
             *      }
             *      ContentsPlaceHolder.Controls.Add(literalControl);
             *      count++;
             *  }
             * }
             * else
             * {
             *  foreach (DataRow child in ContentsTable.Rows)
             *  {
             *      if (child["ContentID"].ToString() == _contentID.ToString())
             *      {
             *          literalControl = new LiteralControl(String.Format("<li class='current'><a href='{0}'>{1}</a></li>\n",
             *              "/Categories/Category.aspx?CategoryID=" + _categoryID.ToString() + "&ContentID=" + child["ContentID"].ToString(),
             *              child["ContentTitle"].ToString()));
             *      }
             *      else
             *      {
             *          literalControl = new LiteralControl(String.Format("<li><a href='{0}'>{1}</a></li>\n",
             *              "/Categories/Category.aspx?CategoryID=" + _categoryID.ToString() + "&ContentID=" + child["ContentID"].ToString(),
             *              child["ContentTitle"].ToString()));
             *      }
             *      ContentsPlaceHolder.Controls.Add(literalControl);
             *  }
             * }
             * */
            DataTable news = ContentsTable;

            CatRepeater.DataSource = news;
            CatRepeater.DataBind();
        }