internal void Render(HtmlTextWriter output)
 {
     if (this.PageOutput && (this._requestData != null))
     {
         TraceEnable enable = this._isEnabled;
         this._isEnabled = TraceEnable.Disable;
         output.Write("<div id=\"__asptrace\">\r\n");
         output.Write(TraceHandler.StyleSheet);
         output.Write("<span class=\"tracecontent\">\r\n");
         Control control = TraceHandler.CreateDetailsTable(this._requestData.Tables["Trace_Request"]);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTraceTable(this._requestData.Tables["Trace_Trace_Information"]);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateControlTable(this._requestData.Tables["Trace_Control_Tree"]);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Session_State"], true);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Application_State"], true);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Request_Cookies_Collection"], true);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Response_Cookies_Collection"], true);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Headers_Collection"], true);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Response_Headers_Collection"], true);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Form_Collection"]);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Querystring_Collection"]);
         if (control != null)
         {
             control.RenderControl(output);
         }
         control = TraceHandler.CreateTable(this._requestData.Tables["Trace_Server_Variables"], true);
         if (control != null)
         {
             control.RenderControl(output);
         }
         output.Write("<hr width=100% size=1 color=silver>\r\n\r\n");
         output.Write(System.Web.SR.GetString("Error_Formatter_CLR_Build") + VersionInfo.ClrVersion + System.Web.SR.GetString("Error_Formatter_ASPNET_Build") + VersionInfo.EngineVersion + "\r\n\r\n");
         output.Write("</font>\r\n\r\n");
         output.Write("</span>\r\n</div>\r\n");
         this._isEnabled = enable;
     }
 }
Пример #2
0
        internal void Render(HtmlTextWriter output)
        {
            if (PageOutput && _requestData != null)
            {
                TraceEnable oldEnabled = _isEnabled;

                _isEnabled = TraceEnable.Disable;

                Control table;

                output.Write("<div id=\"__asptrace\">\r\n");
                output.Write(TraceHandler.StyleSheet);
                output.Write("<span class=\"tracecontent\">\r\n");

                table = TraceHandler.CreateDetailsTable(_requestData.Tables[SR.Trace_Request]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTraceTable(_requestData.Tables[SR.Trace_Trace_Information]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateControlTable(_requestData.Tables[SR.Trace_Control_Tree]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Session_State], true /*encodeSpaces*/);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Application_State], true /*encodeSpaces*/);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Request_Cookies_Collection], true /*encodeSpaces*/);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Response_Cookies_Collection], true /*encodeSpaces*/);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Headers_Collection], true /*encodeSpaces*/);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Response_Headers_Collection], true /*encodeSpaces*/);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Form_Collection]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Querystring_Collection]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Server_Variables], true /*encodeSpaces*/);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                output.Write("<hr width=100% size=1 color=silver>\r\n\r\n");
                output.Write(SR.GetString(SR.Error_Formatter_CLR_Build) + VersionInfo.ClrVersion +
                             SR.GetString(SR.Error_Formatter_ASPNET_Build) + VersionInfo.EngineVersion + "\r\n\r\n");
                output.Write("</font>\r\n\r\n");

                output.Write("</span>\r\n</div>\r\n");

                _isEnabled = oldEnabled;
            }
        }
Пример #3
0
        internal void Render(HtmlTextWriter output)
        {
            if (PageOutput && _requestData != null)
            {
                TraceEnable oldEnabled = _isEnabled;

                _isEnabled = TraceEnable.Disable;

                Control table;

                output.Write("<div id=\"__asptrace\">\r\n");
                output.Write(TraceHandler.StyleSheet);
                output.Write("<span class=\"tracecontent\">\r\n");

                table = TraceHandler.CreateDetailsTable(_requestData.Tables[SR.Trace_Request]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTraceTable(_requestData.Tables[SR.Trace_Trace_Information]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateControlTable(_requestData.Tables[SR.Trace_Control_Tree]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Session_State]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Application_State]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Cookies_Collection]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Headers_Collection]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Form_Collection]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Querystring_Collection]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                table = TraceHandler.CreateTable(_requestData.Tables[SR.Trace_Server_Variables]);
                if (table != null)
                {
                    table.RenderControl(output);
                }

                output.Write("</span>\r\n</div>\r\n");

                _isEnabled = oldEnabled;
            }
        }