HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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);
    }
}