473,385 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

display time needed for creation of the page

hello,

what is the best way to display display the time needed for rendering the
information. I must get the difference of time from the start of rendering
till the finish rendering the page - but any ideas how to do it?

My customer want to have such a info on every page, somthing like 0,12 sek

best regards
Feb 9 '06 #1
6 1416
Well, you could record the time in the Page_Init and also in the
Page_PreRender and then in the Page_PreRender, change a label that you might
have so that it's text contains the difference between the two times.

"Xavier" <Xa****@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
hello,

what is the best way to display display the time needed for rendering the
information. I must get the difference of time from the start of rendering
till the finish rendering the page - but any ideas how to do it?

My customer want to have such a info on every page, somthing like 0,12 sek

best regards

Feb 9 '06 #2
Hard to do with ASP 1.1 or 2.0 as the first time it renders is much slower
than subsequent times so your data will be misleading. You might want to do
an average over some predefined session of multiple pages.
"Xavier" <Xa****@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
hello,

what is the best way to display display the time needed for rendering the
information. I must get the difference of time from the start of rendering
till the finish rendering the page - but any ideas how to do it?

My customer want to have such a info on every page, somthing like 0,12 sek

best regards

Feb 9 '06 #3
Answer to Xavier:

Not sure where problem is.
Just do it.
First line in HTML.

<%
long l1 = DateTime.Now.Ticks;
%>

Last line
<%
long l2 = DateTime.Now.Ticks;
Response.Write( (l2-l1)/1000);
%>
George.

"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:uD**************@TK2MSFTNGP15.phx.gbl...
Hard to do with ASP 1.1 or 2.0 as the first time it renders is much slower
than subsequent times so your data will be misleading. You might want to
do an average over some predefined session of multiple pages.
"Xavier" <Xa****@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
hello,

what is the best way to display display the time needed for rendering the
information. I must get the difference of time from the start of
rendering
till the finish rendering the page - but any ideas how to do it?

My customer want to have such a info on every page, somthing like 0,12
sek

best regards


Feb 9 '06 #4
thanks for your replay.
My problem is - how can i simply add such a feature in a simply way to all
pages. I think something like create a new class inherited from a page ....
and then all aspx pages of the site should be inherited from this new class
.....

I did not know if this is a possible or a good concept. I did not want to
implement in each codebehind of every page manually the necesary code

Any ideas, is this possible?
thanks

"George Ter-Saakov" wrote:
Answer to Xavier:

Not sure where problem is.
Just do it.
First line in HTML.

<%
long l1 = DateTime.Now.Ticks;
%>

Last line
<%
long l2 = DateTime.Now.Ticks;
Response.Write( (l2-l1)/1000);
%>
George.


Feb 9 '06 #5
Really depends on your design.
The Master pages design is perfect. Then all you have to do is to change
the master page and all your pages would be changed.

Is you do not have that design then you need to go and touch every aspx
page. Since you need to modify HTML anyway to display that information.
George.
"Xavier" <Xa****@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
thanks for your replay.
My problem is - how can i simply add such a feature in a simply way to all
pages. I think something like create a new class inherited from a page
....
and then all aspx pages of the site should be inherited from this new
class
....

I did not know if this is a possible or a good concept. I did not want to
implement in each codebehind of every page manually the necesary code

Any ideas, is this possible?
thanks

"George Ter-Saakov" wrote:
Answer to Xavier:

Not sure where problem is.
Just do it.
First line in HTML.

<%
long l1 = DateTime.Now.Ticks;
%>

Last line
<%
long l2 = DateTime.Now.Ticks;
Response.Write( (l2-l1)/1000);
%>
George.

Feb 9 '06 #6
yes for 2.0 it's perfect to use.
thanks for your help.

"George Ter-Saakov" wrote:
Really depends on your design.
The Master pages design is perfect. Then all you have to do is to change
the master page and all your pages would be changed.

Is you do not have that design then you need to go and touch every aspx
page. Since you need to modify HTML anyway to display that information.
George.
"Xavier" <Xa****@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
thanks for your replay.
My problem is - how can i simply add such a feature in a simply way to all
pages. I think something like create a new class inherited from a page
....
and then all aspx pages of the site should be inherited from this new
class
....

I did not know if this is a possible or a good concept. I did not want to
implement in each codebehind of every page manually the necesary code

Any ideas, is this possible?
thanks

"George Ter-Saakov" wrote:
Answer to Xavier:

Not sure where problem is.
Just do it.
First line in HTML.

<%
long l1 = DateTime.Now.Ticks;
%>

Last line
<%
long l2 = DateTime.Now.Ticks;
Response.Write( (l2-l1)/1000);
%>
George.


Feb 9 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: Rich | last post by:
I'm sure it sounds kinda nutty to display 200 columns and 500,000 rows of data. But I have been pulling data from a Lotus Notes database into Sql Server for a while now, but Lotus Notes is...
8
by: Monty | last post by:
Let's say you provide an online service from 7:00AM to 6:00PM Eastern Time (daylight time in the summer). Is there way of showing these hours of availability on a web page in the user's local...
23
by: Mat | last post by:
<div id="container"> <div id="main"> <div id="header"> <p class="Address">123 Fake Street, </p> <p class="City">Crazy City, </p> <p class="Province">Ontario </p> <p class="PostalCode">H0H...
2
by: Fabrizio | last post by:
I have just put a internet webcam that save every 30 seconds a picture via ftp. I have an html file that display this picture file (the name of the file is always the same and the webcam delete the...
7
by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is...
2
by: Vaj | last post by:
hi, i would be very thankful if u can help me in solving this problem. my problem is i 've a page in that i'm displaying the creation dates of all files. these dates are like server dates . now...
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
14
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.