protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
ScriptManager.RegisterHiddenField(this, ContentChangedId, String.Empty);
ScriptManager.RegisterHiddenField(this, ContentForceId, "1");
ScriptManager.RegisterHiddenField(this, ContentId, Content.Replace("&", "&").Replace("<", "<").Replace(">", ">").Replace("\"", """));
ScriptManager.RegisterHiddenField(this, ActiveModeId, ((int)ActiveMode).ToString(CultureInfo.InvariantCulture));
Page.RegisterRequiresPostBack(this);
for(var i = 0; i < Controls.Count; i++) {
if(IgnoreTab) {
var panel = Controls[i] as ModePanel;
panel.Attributes.Add("tabindex", "-1");
}
if(Controls[i].GetType() == typeof(HtmlPanel)) {
(Controls[i] as HtmlPanel).CssClass = HtmlPanelCssClass;
}
}
}