Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Trace Hogs the Whole Page

  Asked By: Diem    Date: Sep 28    Category: Asp.net    Views: 1034
  

When I set page trace = true or enable it in the
web.config, it shows up behind all the controls from
the very top of the page on down. I thougt it was
supposed to start at the bottom of the normal webpage.
I tried setting,
<DIV
style="position:absolute;left:0px;top:400px;"></DIV>
after the </HTML> tag and before it and it underlines
"DIV" and doesn't solve the problem.

Share: 

 

5 Answers Found

 
Answer #1    Answered By: Aalia Arain     Answered On: Sep 28

A quick way round the absolute positioning problem  is to add a div to the
bottom of your page  and set  it's top  style to the bottom most height of
your content, that will absolutly position the trace  content.
This way it will appear below your page.
As so: -
...
<div style="position:absolute;left:0px;top:400px;">
Better still give it server side functionality and when you are in deug and
Tracing is enabled set the div to visible.

*********************************************
A note from me on all this:

My personal recommendation is trace.axd is sometimes a better choice.

http://www.learnasp.com/freebook/learn/debug1.aspx

Add the following to your
<system.web> section in your web.config file:
<trace enabled="true" requestLimit="50" pageOutput="false" />

http://localhost/trace.axd.

This lets you see the trace but it doesn't clash with the varied
positioning for you page. Remember not to leave this on in production.

scottcate.mykbpro.com/kbArticleRead.aspx?ArtID=711
is a short article written by Scott Cate on how to secure your
trace.axd file so that it's not available for the world to see.

 
Answer #2    Answered By: Terence Mitchell     Answered On: Sep 28

I inserted the DIV thing if you read my initial post,
having run into the same information that you did on
the other lists and Scott Cates site. It didn't work.

Trace still Hogs the Whole page  showing up behind the
controls. I know http://localhost/trace.axd works but
I'm getting weary of navigating in between this and
that pages trying to view each page's state/info. Sure
would be nice if it was at the bottom.

 
Answer #3    Answered By: Adalwin Fischer     Answered On: Sep 28

If I could figure out how to get the trace  to write
the DIV tag  style characteristics, I would be in
business because I saved the webpage  generated in the
browser to my desktop as html, then I opened it in
NotePad and found the auto generated DIV tag that was
this: "<DIV id=__asptrace >" and I changed it to this:
"<DIV id=__asptrace
style=position:absolute;left:0px;top:600px;>"

And when I refreshed the html page, the trace info was
at the bottom, below all the regular web stuff! Just
like I wanted.

Now to figure out how to autogenerate it because
putting it at the bottom of the HTML code in design
mode doesn't work.

 
Answer #4    Answered By: Skye Hughes     Answered On: Sep 28

Also Look for problems like
position:absolute
change to
position:relative

MS_POSITIONING="GridLayout"
may be another thing to kill.

 
Answer #5    Answered By: Funsani Chalthoum     Answered On: Sep 28

Changing from GridLayout to FlowLayout doesn't work. I
also have too many position:absolutes to change.

 
Didn't find what you were looking for? Find more on Trace Hogs the Whole Page Or get search suggestion and latest updates.




Tagged: