Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 4 Sep 2008 05:45:39 -0700 (PDT),    group: microsoft.public.dotnet.framework.aspnet        back       


get page length   
Hi,

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

Thanks
date: Thu, 4 Sep 2008 05:45:39 -0700 (PDT)   author:   josh

Re: get page length   
"josh"  wrote in message 
news:534158d4-ddad-4f25-b424-1988f653d932@n38g2000prl.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
date: Thu, 4 Sep 2008 14:18:32 +0100   author:   Anthony Jones

Re: get page length   
On 4 Set, 15:18, "Anthony Jones" 
wrote:
> "josh"  wrote in message
>
> news:534158d4-ddad-4f25-b424-1988f653d932@n38g2000prl.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?
date: Thu, 4 Sep 2008 06:48:32 -0700 (PDT)   author:   josh

Re: get page length   
"josh"  wrote in message 
news:bc490d18-ce66-4e2f-9a97-95324c7ef70f@1g2000pre.googlegroups.com...
On 4 Set, 15:18, "Anthony Jones" 
wrote:
> "josh"  wrote in message
>
> news:534158d4-ddad-4f25-b424-1988f653d932@n38g2000prl.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
date: Thu, 4 Sep 2008 16:00:41 +0100   author:   Anthony Jones

Re: get page length   
> 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.
date: Fri, 5 Sep 2008 00:03:16 -0700 (PDT)   author:   josh

Re: get page length   
"josh"  wrote in message 
news:0dbdfed3-35fe-4010-b5c5-00b35bab58e0@34g2000hsh.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
date: Fri, 5 Sep 2008 10:57:44 +0100   author:   Anthony Jones

Re: get page length   
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/scriptcenter/tools/logparser/default.mspx

Andrew
date: Fri, 5 Sep 2008 11:27:03 +0100   author:   Andrew Morton lid

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us