protected void btnSave_Click(object sender, System.EventArgs e)
        {
            lblMessage.Text = string.Empty;

            SlideShowImage slideImg = SlideShowImage.GetById(this.ContentId);

            // Update the content
            slideImg.SlideTextContentName = txtContentName.Text.Trim();
            slideImg.SlideTextContent     = txtContent.Value;
            slideImg.LinkUrl = txtLinkUrl.Text.Trim();

            slideImg.Save(Page.User.Identity.Name);

            // Reload content
            SetEditableContent();

            lblMessage.Text = "<br>Your changes have been saved.";
        }
        private void SetEditableContent()
        {
            lblMessage.Text  = string.Empty;
            txtContent.Value = String.Empty;
            SlideShowImage slideImage;

            slideImage = SlideShowImage.GetById(this.ContentId);

            if (slideImage != null)
            {
                this.ContentName = slideImage.SlideTextContentName;
                this.ContentText = slideImage.SlideTextContent;
                this.LinkUrl     = slideImage.LinkUrl;
            }

            txtContent.Value    = this.ContentText;
            txtContentName.Text = this.ContentName;
            txtLinkUrl.Text     = this.LinkUrl;

            //EditorModalPopup.Show();
        }