Esempio n. 1
0
        protected override void Render(HtmlTextWriter writer)
        {
            if (ScriptManager.GetCurrent(this) is SNScriptManager)
            {
                // The SN script manager will take care of rendering WebForms.js into its bundle, we can hack it out here
                PageReflector.Current.DisableWebFormsScriptRendering(this);
            }

            base.Render(writer);

            if (ShowExecutionTime)
            {
                _timer.Stop();
                RenderTimerValue(writer);
            }

            var s = Tracing.GetOperationTrace();

            if (!string.IsNullOrEmpty(s))
            {
                try
                {
                    RenderDiagnosticTree(s, writer);
                }
                finally
                {
                    Tracing.ClearOperationTrace();
                }
            }
        }
Esempio n. 2
0
        protected override void Render(HtmlTextWriter writer)
        {
            base.Render(writer);

            if (this.ShowExecutionTime)
            {
                _timer.Stop();
                RenderTimerValue(writer);
            }

            var s = Tracing.GetOperationTrace();

            if (!string.IsNullOrEmpty(s))
            {
                try
                {
                    RenderDiagnosticTree(s, writer);
                }
                finally
                {
                    Tracing.ClearOperationTrace();
                }
            }
        }