protected virtual void RenderDocumentEnd(HtmlTextWriter w) { w.Write(@"<div id=""footer"">"); // Write out server date, time and time zone details. DateTime now = DateTime.Now; w.Write(@"<div id=""servertime"">"); w.Write("Server time is "); this.Server.HtmlEncode(now.ToString("G", CultureInfo.InvariantCulture), w); w.Write(" "); string s = TimeZone.CurrentTimeZone.IsDaylightSavingTime(now) ? TimeZone.CurrentTimeZone.DaylightName : TimeZone.CurrentTimeZone.StandardName; foreach (Match m in Regex.Matches(s, @"\b\w")) { w.Write(m.ToString()); } w.Write(@"</div>"); // Write the powered-by signature, that includes version information. PoweredBy poweredBy = new PoweredBy(); w.Write(@"<div id=""version"">"); poweredBy.RenderControl(w); w.Write("; "); this.Server.HtmlEncode(this.ErrorLog.Name, w); w.Write(@"<div>"); w.Write(@"</div>"); // footer w.WriteLine("</body>"); w.WriteLine("</html>"); }