BlogEngine.Core.Web.Controls.BlogBasePage.AddMetaContentType C# (CSharp) Method

AddMetaContentType() protected method

Adds the content-type meta tag to the header.
protected AddMetaContentType ( ) : void
return void
        protected virtual void AddMetaContentType()
        {
            var meta = new HtmlMeta
                {
                    HttpEquiv = "content-type",
                    Content =
                        string.Format(
                            "{0}; charset={1}", Response.ContentType, Response.ContentEncoding.HeaderName)
                };
            Page.Header.Controls.Add(meta);
        }