protected override void OnInit(EventArgs e)
{
this.Load += this.Page_Load;
// LoadControlType();
base.OnInit(e);
// System.InvalidOperationException: The EnableScriptGlobalization property cannot be changed during async postbacks or after the Init event.
if (!this.IsPostBack && AJAX.IsInstalled())
{
AJAX.RegisterScriptManager();
var scriptManager = AJAX.GetScriptManager(this.Page);
scriptManager.EnableScriptGlobalization = true;
scriptManager.EnableScriptLocalization = true;
}
this.teDescription.Width = this.ItemEditDescriptionWidth;
this.teDescription.Height = this.ItemEditDescriptionHeight;
if (Engage.Utility.HasValue(this.VersionInfoObject.Url))
{
this.ctlUrlSelection.Url = this.VersionInfoObject.Url;
this.chkNewWindow.Checked = this.VersionInfoObject.NewWindow;
this.pnlUrlSelection.Visible = true;
this.chkUrlSelection.Checked = true;
this.UseUrls = true;
}
// TODO: should we allow NewWindow to work even if the URL option isn't chosen
}