protected void Page_Load(object sender, EventArgs e)
        {
            BOLNews NewsBOL = new BOLNews();

            //rptInterviews.DataSource = NewsBOL.GetNewsByContentType(2, 4);
            //rptInterviews.DataBind();

            rptArticles.DataSource = NewsBOL.GetNewsByContentType(1, 4, 1);
            rptArticles.DataBind();

            rptNotes.DataSource = NewsBOL.GetNewsByContentType(4, 4, 1);
            rptNotes.DataBind();
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BOLHardCode HardCodeBOL = new BOLHardCode();

            HardCodeBOL.TableOrViewName = "HCContentTypes";
            lblHeader.Text = HardCodeBOL.GetNameByCode(_hCContentTypeCode);

            BOLNews NewsBOL   = new BOLNews();
            int     TakeCount = 4;

            if (_hCContentTypeCode == 5)//دیدگاه
            {
                TakeCount = 2;
            }
            if (_hCContentTypeCode == 8)//دیگر رسانه ها
            {
                TakeCount = 5;
            }
            if (_hCContentTypeCode == 3)//گزارش
            {
                TakeCount = 3;
            }
            if (_hCContentTypeCode == 2)//مصاحبه
            {
                TakeCount = 2;
            }
            rptItems.DataSource = NewsBOL.GetNewsByContentType(_hCContentTypeCode, TakeCount, 1);
            rptItems.DataBind();
            hplMore.NavigateUrl = "~/News/?CT=" + _hCContentTypeCode;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            BOLNews NewsBOL = new BOLNews();

            rptNews.DataSource = NewsBOL.GetNewsByContentType(9, 6, 1);
            rptNews.DataBind();
        }