protected override void OnPreRender(EventArgs e)
{
Response.ContentEncoding = Encoding.UTF8; //TODO: allow for per/blog config.
Response.ContentType = "text/html"; //TODO: allow for per/blog config.
//Is this for extra security?
EnableViewState = false;
pageTitle.Text = Globals.CurrentTitle(Context);
if (!String.IsNullOrEmpty(Config.CurrentBlog.Author))
{
authorMetaTag.Text = String.Format(Environment.NewLine + "<meta name=\"author\" content=\"{0}\" />", Config.CurrentBlog.Author);
}
versionMetaTag.Text = String.Format(Environment.NewLine + "<meta name=\"Generator\" content=\"{0}\" />" + Environment.NewLine, VersionInfo.VersionDisplayText);
if (!String.IsNullOrEmpty(Config.CurrentBlog.TrackingCode))
{
customTrackingCode.Text = Config.CurrentBlog.TrackingCode;
}
base.OnPreRender(e);
}