Page load time

  • Thread starter Thread starter Tim Gaunt
  • Start date Start date
T

Tim Gaunt

Hi,

I have a photo album and I would like to measure the time it takes for
the page to load, in classic ASP I used something a long the lines of:
<%
Timerstart = Now()
%>
<%
Response.Write("Time to load was: " DateDiff(n, Now(), Timerstart)
%>

The problem is that I don't know how to do this in ASP.NET, I thought I
could put it in the page_load having it start at the top of the code and
then pump out the result at the end but I just seem to get 0 all the
time, does anyone have any suggestions perhaps using system.timers.timer
events could produce something?

Thanks in advance.

Tim
 
Tim,

Basicly you can use your style of code in ASPX as well, however more as a
kind of intermidiate code to make it later more VBNet style.

These pages give in my opinion a good insight in this.

http://samples.gotdotnet.com/quickstart/

See that this is a kind of VBNet ASPX scripting while this newsgroup is more
focused on when it is ASPX as "code behind".

For the questions as yours is in my opinion the newsgroup

Aspnet
news://msnews.microsoft.com/microsoft.public.dotnet.framework.aspnet

Web interface:
http://communities2.microsoft.com/c.../?dg=microsoft.public.dotnet.framework.aspnet

A better place to go,
(You are welcome of course here as well).

I hope this helps?

Cor
 

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

Back
Top