Trace debug info "under" my controls

T

TPS

When I set trace enable to true in my web.config file, the debug info does
not display at the "bottom" of the page, it displays "under" all of my
buttons, labels, grids etc.

This behavior happens in GridLayout, or FlowLayout.

?
Thanks,

TPS.
 
M

MSFT

Hi TPS,

Thank you for using Microsoft Newsgroup Service. Based on your description.
When you use the Page Level tracing and let the Trace Logging to Page
Output. You found that the trace output are output onto the page in
disorder layout(even mixed with the controls on it). Is my understanding
correct?

If so, I think the problem is likely caused by the controls' position mode
on the webpage. If you locate the control or other element on the page as
relative position, the trace output will have on problem, just output at
the page's bottom.Because the trace will output the information ontot he
page by flow sequnce(after any other control or element which use relative
position,mode) However, if you locate some of the controls as absolute
position mode,for example:
<asp:Button id="Button1" runat="server" Width="128px" Height="40px"
Text="Button" style="Z-INDEX: 101; LEFT: 528px; POSITION: absolute; TOP:
32px"></asp:Button>
the "POSITION:absolute; TOP:32PX" just specify the absolute position.

In such cases, the trace output will ignore those contorls which use the
absolute position mode. And if some of the controls are right at the place
which will cover the trace output, then you will encounter the result that
the trace output and some controls are mixed together.

I think this a limit in the html page(since controls or element using
absolute position can cover other element on the same page).


Please try out the preceding suggestions and let me know whether they help.


Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
C

Cristhian Job

I think trace debug info is under your controls because your page layout is
GridLayout, if you have FlowLayout you won´t have this problem.

Personally, i´d rather set pageOutput to False and then view the trace.axd
file.

Hope this helps
 
T

TPS

This behavior happens in GridLayout, or FlowLayout.

As I stated in my original post, the behavior happens in GridLayout, or
FlowLayout.
 
T

TPS

Stephen, Christian.

Thanks for your replies.

Yes it was a case of "Absolute" positioning causing the problem.

The behavior did not change when I switched the page flow to FlowLayout.

It looks like if you build a page in GridLayout mode, visual studio puts
"Position = Absolute" tags on all of your web form objects you place on the
page.

But it you switch the page layout to "FlowLayout", it DOES NOT switch the
"Positon to relative" on all of your objects. (is this a bug?)

That is why I was experiencing this: >>This behavior happens in
GridLayout, or FlowLayout.

After killing the page and rebuilding it in FlowLayout everything works
fine.

Thanks for both of your responses.

TPS.
 
M

MSFT

Hi TPS,

Thanks for your reply. I'm glad that my suggestion helps you. As for view
the trace info , I agree with Cristhian, you can view the trace.axd to view
the trace info. It can provide you more complete trace info of the whole
web applications as well as a certain request's.


Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top