예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BOLMultiMedias MultiMediasBOL = new BOLMultiMedias();

            rptMovies.DataSource = MultiMediasBOL.GetListByType(2, 5, 1);
            rptMovies.DataBind();
            if (rptMovies.Items.Count == 0)
            {
                pnlLatestMovies.Visible = false;
            }

            rptSounds.DataSource = MultiMediasBOL.GetListByType(3, 5, 1);
            rptSounds.DataBind();
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int PageNo   = 1;
            int PageSize = 24;

            BOLMultiMedias MultiMediasBOL = new BOLMultiMedias();

            rptPics.DataSource = MultiMediasBOL.GetListByType(null, PageSize, PageNo);
            rptPics.DataBind();
        }