Ejemplo n.º 1
0
        protected void GetExistingMedia()
        {
            if (_MediaId > 0)
            {
                Shiloh.BL.Media media = new Shiloh.BL.Media(_MediaId);

                if (!string.IsNullOrEmpty(media.Name))
                {
                    ucDateTimeMediaDate.SelectedDate = media.MediaDate;

                    txtDescription.Text = media.Description;
                    txtEmbedObject.Text = media.EmbedObjectBlob;
                    txtMIMEType.Text = media.MIMEType;
                    txtName.Text = media.Name;
                    txtSize.Text = media.Size.ToString();
                    txtURL.Text = media.URL;

                    cbIsActive.Checked = media.IsActive;
                    cbIsStreaming.Checked = media.IsStreaming;

                    ddlCategory.SelectedValue = media.CategoryId.ToString();
                    ddlProvider.SelectedValue = media.ProviderId.ToString();
                }
            }
        }
Ejemplo n.º 2
0
        protected void LinkButton_Command(object sender, CommandEventArgs e)
        {
            LinkButton lb = sender as LinkButton;

            if (lb != null)
            {
                int id = Convert.ToInt32(e.CommandArgument.ToString());

                Shiloh.BL.Media media = new Shiloh.BL.Media(id);

                if (media.IsStreaming)
                {
                    litVideo.Text = media.EmbedObjectBlob;
                }
            }

            //if (lb != null)
            //{
            //    string clipId = e.CommandArgument.ToString();
            //    this.litVideo.Text = litVideo.Text.Replace("%clipid%", e.CommandArgument.ToString());
            //  this.litVideo.Text = litVideo.Text.Replace("%clipid%", "8323818");
            //}
        }
Ejemplo n.º 3
0
        protected void LinkButton_Command(object sender, CommandEventArgs e)
        {
            LinkButton lb = sender as LinkButton;

            if (lb != null)
            {
                int id = Convert.ToInt32(e.CommandArgument.ToString());

                Shiloh.BL.Media media = new Shiloh.BL.Media(id);

                RaiseMediaSelectedEvent(media.EmbedObjectBlob);
            }
        }