File: D:/HostingSpaces/RMourik/bassol.nl/CMS/CMSFormControls/Selectors/InsertYouTubeVideo/Content.aspx.cs
using System;
using CMS.UIControls;
using CMS.ExtendedControls.ActionsConfig;
public partial class CMSFormControls_Selectors_InsertYouTubeVideo_Content : CMSModalPage
{
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
EnsureScriptManager();
}
protected void Page_Load(object sender, EventArgs e)
{
CurrentMaster.Page.Title = GetString("dialogs.youtube.inserttitle");
PageTitle.TitleText = GetString("dialogs.youtube.inserttitle");
CurrentMaster.Body.Attributes.Add("onbeforeunload", "$cmsj('.YouTubePreviewBox').remove();");
HeaderAction action = new HeaderAction
{
Text = GetString("dialogs.youtube.goto"),
Target = "_blank",
RedirectUrl = "http://www.youtube.com"
};
CurrentMaster.HeaderActions.AddAction(action);
}
}