Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int PageNo   = 1;
            int PageSize = 24;

            int    Code    = 0;
            string strCode = Request["Code"];

            Int32.TryParse(strCode, out Code);
            if (Code == 0)
            {
                return;
            }

            BOLMultiMedias MultiMediasBOL = new BOLMultiMedias();
            MultiMedias    CurItem        = MultiMediasBOL.GetDetails(Code);

            Page.Title          = ltrTitle.Text = CurItem.Title;
            ltrDescription.Text = CurItem.Description;
            imgPic.ImageUrl     = "~/" + CurItem.PicFile;

            BOLMultiMediaPictures MultiMediaPicturesBOL = new BOLMultiMediaPictures(1);

            rptPics.DataSource = MultiMediaPicturesBOL.GetPictures(Code);
            rptPics.DataBind();
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                switch (_hCPicTypeCode)
                {
                case 1:
                    ltrHeader.Text = "چهره روز";
                    break;

                case 2:
                    ltrHeader.Text = "کاریکاتور";
                    break;

                default:
                    break;
                }

                BOLMultiMedias MultiMediasBOL = new BOLMultiMedias();
                MultiMedias    LatestPic      = MultiMediasBOL.GetLatestByType(_hCPicTypeCode);
                if (LatestPic != null)
                {
                    lblPicTitle.Text        = LatestPic.Description;
                    imgPic.ImageUrl         = "~/" + LatestPic.PicFile;
                    hplLargePic.NavigateUrl = LatestPic.LargePicFile;
                }
            }
            catch (Exception err)
            {
            }
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string strCode = Request["Code"];
            int    Code;

            Int32.TryParse(strCode, out Code);

            BOLMultiMedias MultiMediasBOL = new BOLMultiMedias();

            if (Code != 0)
            {
                MultiMedias CurMedia = MultiMediasBOL.GetDetails(Code);
                if (CurMedia != null)
                {
                    UCComments1.ItemCode = CurMedia.Code;

                    lblTitle.Text = CurMedia.Title;
                    //ltrDescription.Text = CurMedia.Description;
                }
            }
        }