473,796 Members | 2,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to show the refresh time of a web page

ad
I have a web page which show a lot of data, it waste a lot of time to show
the data.
I wnat to know how much time it take to show the data.
How can I get it?
Oct 29 '06 #1
3 1623
You can use the StopWatch class or just set a DateTime field with
DateTime.Now at the very beginning of page processing (you pick the event you
want to start with) and then say, in Page_Unload, you would set a new
DateTime field to DateTime.Now. Take the timespan difference by subtracting
the first from the last, and get the TotalMillisecon ds.
Of course, reading between the lines, this is only going to tell you
something you already know: your page is taking a long time to display data.
Better to investigate why this may be happening and work to create a more
efficient way to get what you want.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ad" wrote:
I have a web page which show a lot of data, it waste a lot of time to show
the data.
I wnat to know how much time it take to show the data.
How can I get it?
Oct 29 '06 #2
ad
Thanks,
What is the event at the very begining of a page creating?
"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com ¼¶¼g©ó¶l¥ó·s»D: 3B************* *************** ******@microsof t.com...
You can use the StopWatch class or just set a DateTime field with
DateTime.Now at the very beginning of page processing (you pick the event
you
want to start with) and then say, in Page_Unload, you would set a new
DateTime field to DateTime.Now. Take the timespan difference by
subtracting
the first from the last, and get the TotalMillisecon ds.
Of course, reading between the lines, this is only going to tell you
something you already know: your page is taking a long time to display
data.
Better to investigate why this may be happening and work to create a more
efficient way to get what you want.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ad" wrote:
>I have a web page which show a lot of data, it waste a lot of time to
show
the data.
I wnat to know how much time it take to show the data.
How can I get it?

Oct 29 '06 #3
Ad,

Enable trace. It will help you to identify which place takes long time to
execute. Go to web.config file, put this
<trace enabled="true" pageOutput="tru e" requestLimit="1 000"/>
under <system.websect ion. (You can also use it from trace.axd utility page
when pageOutput is set to false)

Milosz Skalecki
MCAD
"ad" wrote:
Thanks,
What is the event at the very begining of a page creating?
"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com ¼¶¼g©ó¶l ¥Ã³Â·s»D:3B*** *************** *************** *@microsoft.com ...
You can use the StopWatch class or just set a DateTime field with
DateTime.Now at the very beginning of page processing (you pick the event
you
want to start with) and then say, in Page_Unload, you would set a new
DateTime field to DateTime.Now. Take the timespan difference by
subtracting
the first from the last, and get the TotalMillisecon ds.
Of course, reading between the lines, this is only going to tell you
something you already know: your page is taking a long time to display
data.
Better to investigate why this may be happening and work to create a more
efficient way to get what you want.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ad" wrote:
I have a web page which show a lot of data, it waste a lot of time to
show
the data.
I wnat to know how much time it take to show the data.
How can I get it?


Oct 29 '06 #4

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

Similar topics

7
3081
by: Rudy | last post by:
Hello All! After working in the television industry, moving to a developing career has been interesting to say the least. 3 years of developing with books, and the help of you fine folks on this forum, I have learned quite a bit. But that doesn't mean anything when your looking for your first developing gig. 15 years in television production, and not having a college degree in Computer Science does not make me a very good prospect....
8
9401
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE window to refresh, based on its caption. For example, there is a web site that I want to keep active where I normally have to refresh it manually before it times out (every 15 min or so). I might be doing something else at the time so I don't...
5
3752
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{ window.opener.location = 'Default.aspx?Reload=100'; }</script>"); Response.Write("<script language='javascript' type='text/javascript'{ self.close(); }</script>");
1
2544
by: BibhuAshish | last post by:
Hi, I am using struts 2. I need to have a clock ticking every second in my webpage to show server time. I do not want to refresh my whole page every second and i do not want to use applet. Now how can i display time in my webpage? I wrote jsp code like the following::::: <%
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9524
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.