473,396 Members | 2,013 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,396 software developers and data experts.

get page length

Hi,

can I know the request and the response page bytes (its length)?

Thanks
Sep 4 '08 #1
6 1213
"josh" <xd********@gmail.comwrote in message
news:53**********************************@n38g2000 prl.googlegroups.com...
Hi,

can I know the request and the response page bytes (its length)?
Request.InputStream.Length will give you the size of entity posted.

However Response.OutputStream.Length is not supported. Untill the request
is complete there is no way to know how big it will finally be.

What do you need this info for?
--
Anthony Jones - MVP ASP/ASP.NET

Sep 4 '08 #2
On 4 Set, 15:18, "Anthony Jones" <AnthonyWJo...@yadayadayada.com>
wrote:
"josh" <xdevel1...@gmail.comwrote in message

news:53**********************************@n38g2000 prl.googlegroups.com...
Hi,
can I know the request and the response page bytes (its length)?

Request.InputStream.Length will give you the size of entity posted.

However Response.OutputStream.Length is not supported. *Untill the request
is complete there is no way to know how big it will finally be.

What do you need this info for?

--
Anthony Jones - MVP ASP/ASP.NET

I need this info bacause I must write a profiling application.

So I must know how time passes between one request and its response...

and I have to knowalso other info as that.

If I put Request.InputStream.Length in Page_Load
I have 0

Why?

Sep 4 '08 #3
"josh" <xd********@gmail.comwrote in message
news:bc**********************************@1g2000pr e.googlegroups.com...
On 4 Set, 15:18, "Anthony Jones" <AnthonyWJo...@yadayadayada.com>
wrote:
"josh" <xdevel1...@gmail.comwrote in message

news:53**********************************@n38g2000 prl.googlegroups.com...
Hi,
can I know the request and the response page bytes (its length)?

Request.InputStream.Length will give you the size of entity posted.

However Response.OutputStream.Length is not supported. Untill the request
is complete there is no way to know how big it will finally be.

What do you need this info for?

--
Anthony Jones - MVP ASP/ASP.NET

I need this info bacause I must write a profiling application.

So I must know how time passes between one request and its response...

and I have to knowalso other info as that.

If I put Request.InputStream.Length in Page_Load
I have 0

Why?
>>>>>>>>>>>>>>>>>
For profiling why not use IIS logging?
Indeed there must be a zillion existing (and probably some free) profiling
tools.

The InputStream represents the entity body posted (and there isn't one for a
GET request) not the total size of the headers that have arrived.
--
Anthony Jones - MVP ASP/ASP.NET
Sep 4 '08 #4
For profiling why not use IIS logging?
Indeed there must be a zillion existing (and probably some free) profiling
tools.
Yes, but my boss wants a custom profiling application

The InputStream represents the entity body posted (and there isn't one for a
GET request) not the total size of the headers that have arrived.
Ok but (I also made searching on google) is it possible that I can't
know
the page request/response length?

Thanks for the answers.

Sep 5 '08 #5
"josh" <xd********@gmail.comwrote in message
news:0d**********************************@34g2000h sh.googlegroups.com...
>For profiling why not use IIS logging?
Indeed there must be a zillion existing (and probably some free)
profiling
tools.

Yes, but my boss wants a custom profiling application

>The InputStream represents the entity body posted (and there isn't one
for a
GET request) not the total size of the headers that have arrived.

Ok but (I also made searching on google) is it possible that I can't
know
the page request/response length?
From inside ASP.NET no it isn't.

My advice would be to spend a day researching existing log analysers and
profilers. Turn on IIS Logging and spend another day determining how you
would write a custom app to analyse the generated log files. Estimate how
long it would take you to deliver the required features. Present a report
to your boss comparing the two approaches.

If you want to profile an ASP.NET application for test purposes to see where
you might improve performance then the job is allready done:-

http://www.fiddlertool.com/fiddler.

--
Anthony Jones - MVP ASP/ASP.NET

Sep 5 '08 #6
Anthony Jones wrote:
My advice would be to spend a day researching existing log analysers
and profilers. Turn on IIS Logging and spend another day determining
how you would write a custom app to analyse the generated log files.
Log Parser from MS makes it fairly easy, and it can be used directly from a
..NET program

http://www.microsoft.com/technet/scr...r/default.mspx

Andrew
Sep 5 '08 #7

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

Similar topics

5
by: Sally B. | last post by:
Hello, I searched, but couldn't find answers--probably because I'm not sure what this is called... Anyway, I have about 50 web pages and I want to have some JavaScript that will read in a list of...
10
by: pmelanso | last post by:
Hello, How can I tell if there is a page to go back to in the history or not??? Same with forward??? say something like/// if (there is a page to go back to ) { // DO something }else { }
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
1
by: DJG79 | last post by:
Hi all, I am using an open source menu that i found and it works great, except for one thing that when the web page is not scrolled to the very top the drop down links will not stay visible. Has...
2
by: defyinggravity | last post by:
Hi this is a newbie alert! This may seem really basic to most, but I am a total beginner, so please don't laugh, or gif me false info...lol I will use it. I have an ajax container loading on my...
1
by: jianxin9 | last post by:
Hi, I have an ajax powered tabs box that has a javascript drop-down search menu in the first tab. When I click on another tab, and go back to the first tab I have to refresh the page to get the...
8
by: sneddo | last post by:
Ok I am trying to do the above, I have got a script that will restrict the length but it requires the user to enter the field and hit a key, before it will work. This would normaly be find, but...
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:
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.