/// <summary> /// 显示模板 /// </summary> /// <param name="templatFileName">模板文件名</param> public static void Display(NVelocityHelper th, string templateFile) { //全局 th.Put("querycount", querycount); th.Put("processtime", DateTime.Now.Subtract(starttick).TotalMilliseconds / 1000); th.Put("sqlanalytical", SqlAnalytical); // HttpContext.Current.Response.Clear(); // HttpContext.Current.Response.Write(writer.ToString()); HttpContext.Current.Response.Write(th.BuildString(templateFile)); // HttpContext.Current.Response.End(); }