473,561 Members | 3,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does ASP.NET wait for the entire request body before executing the ASP page?

Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire
data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the
entire request to arrive.
Then I would just begin to chunk my way through the Request.InputSt ream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman
Nov 17 '05 #1
4 1571
If you are dealing with streaming data, I would opt for a different
mechanism than an ASP page. WIthout understanding what you are trying to do,
I am in the dark as to how best to help you.

With a normal ASP.NET page, or ASP page for that matter, the Request is
small. The idea being that you are simply requesting a page, rather than
using the form send mechanism as a means of transfering large amounts of
data. Certainly, you can start Flushing the Response prior to grabbing the
data from the Request object, but an ASPX page is not the best data
receiver.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
"Peter Strĝiman" <blah@blahblahb lah> wrote in message
news:Os******** *****@tk2msftng p13.phx.gbl...
Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire
data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the
entire request to arrive.
Then I would just begin to chunk my way through the Request.InputSt ream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman

Nov 17 '05 #2
If you are dealing with streaming data, I would opt for a different
mechanism than an ASP page. WIthout understanding what you are trying to do,
I am in the dark as to how best to help you.

With a normal ASP.NET page, or ASP page for that matter, the Request is
small. The idea being that you are simply requesting a page, rather than
using the form send mechanism as a means of transfering large amounts of
data. Certainly, you can start Flushing the Response prior to grabbing the
data from the Request object, but an ASPX page is not the best data
receiver.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
"Peter Strĝiman" <blah@blahblahb lah> wrote in message
news:Os******** *****@tk2msftng p13.phx.gbl...
Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire
data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the
entire request to arrive.
Then I would just begin to chunk my way through the Request.InputSt ream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman

Nov 17 '05 #3
Thanks for your reply.

I am dealing with streaming data. To be exact, I want to stream files ( +
some header information that I'll deal with - but disregard that for the
sake of argument. That's still just a part of the stream). Thus when my aspx
page receives the request, the data should be written to disk as it comes
in.
And I completely agrees with you that technically ASPX pages are not the
perfect choice. But it's a lot easier writing and debugging than creating a
windows service - which is the only alternative I can come to think of if I
want 24/7 operation.

But the question still is - will the page be executed before all the entire
request body has been received?

"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamM> wrote in
message news:OU******** ******@TK2MSFTN GP09.phx.gbl...
If you are dealing with streaming data, I would opt for a different
mechanism than an ASP page. WIthout understanding what you are trying to do, I am in the dark as to how best to help you.

With a normal ASP.NET page, or ASP page for that matter, the Request is
small. The idea being that you are simply requesting a page, rather than
using the form send mechanism as a means of transfering large amounts of
data. Certainly, you can start Flushing the Response prior to grabbing the
data from the Request object, but an ASPX page is not the best data
receiver.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
"Peter Strĝiman" <blah@blahblahb lah> wrote in message
news:Os******** *****@tk2msftng p13.phx.gbl...
Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the entire request to arrive.
Then I would just begin to chunk my way through the Request.InputSt ream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman


Nov 17 '05 #4
Thanks for your reply.

I am dealing with streaming data. To be exact, I want to stream files ( +
some header information that I'll deal with - but disregard that for the
sake of argument. That's still just a part of the stream). Thus when my aspx
page receives the request, the data should be written to disk as it comes
in.
And I completely agrees with you that technically ASPX pages are not the
perfect choice. But it's a lot easier writing and debugging than creating a
windows service - which is the only alternative I can come to think of if I
want 24/7 operation.

But the question still is - will the page be executed before all the entire
request body has been received?

"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamM> wrote in
message news:OU******** ******@TK2MSFTN GP09.phx.gbl...
If you are dealing with streaming data, I would opt for a different
mechanism than an ASP page. WIthout understanding what you are trying to do, I am in the dark as to how best to help you.

With a normal ASP.NET page, or ASP page for that matter, the Request is
small. The idea being that you are simply requesting a page, rather than
using the form send mechanism as a means of transfering large amounts of
data. Certainly, you can start Flushing the Response prior to grabbing the
data from the Request object, but an ASPX page is not the best data
receiver.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
"Peter Strĝiman" <blah@blahblahb lah> wrote in message
news:Os******** *****@tk2msftng p13.phx.gbl...
Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the entire request to arrive.
Then I would just begin to chunk my way through the Request.InputSt ream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman


Nov 17 '05 #5

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

Similar topics

6
2734
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim Guid guid = server.createobject("scriptlet.typelib").guid guid=Left(guid,instr(guid,"}")) genguid=guid
3
8424
by: Ed Brandmark | last post by:
I have a tag of the form <SCRIPT LANGUAGE="JavaScript1.1" SRC="foo.js"..... and was wondering if this delays the loading of my page until that file foo.js downloads. It seems that if I place this in the HEAD of my document - the page will wait until it downloads. If I place it in the BODY of my document - supposedly the page
4
2575
by: dave | last post by:
Hi guys I display one page in popup window...that fetches some data from sql and perfom some calculation (tht approx 10 secs) and display result.... I am trying to display "Please wait ..."message while its performing calculation... I'm using the below code...that i have got from following link http://aspfaq.com/show.asp?id=2498 but...
5
3511
by: Emmanuel Papillon | last post by:
Hello. I've got a page with sound through a swf file, working with an animation with preloaded JPEG files (animated through use of setTimeout). I'm preloading the JPEG files through Javascript in the <head> tag, the Flash animation/sound file being in the <object> & <embed> tags. I'd like to fire the sound and JPEG animation once...
6
4472
by: Mark | last post by:
I have been working for quite some time on this issue which in theory should be quite simple. The problem is that the Cancel and Save events are not fired when their respective buttons are clicked. I have read several posts which say to put your column generating section in the Page_Init section and it will solve the problem....however, it...
7
2159
by: mw | last post by:
I'm writing an application that's going to do alot of processing while the user is waiting, (imagine sitting and waiting while the server/background processing is occurring). What's the best way to entertain the user (e.g. show them something's happening - e.g. animated gif progress bar or something) and then automatically show the "done"...
6
2432
by: SP | last post by:
Hi, I want to add wait cursor code whenever page is post back. Page may be post back on my user control's or on change of dropdown or on click of any button on page. so is there any common solution available that will provide me mechanism to display wait cursor or wait image to user whenever page is post back to server? Thanks,
4
3495
by: puja patel | last post by:
hi all, I am developing a shopping cart website in C# where after selecting item, user enters credit card details and click on submit button.This request is then processed by the gateway which usually takes from 5-10 sec of waiting period to get response back if the transaction was approved of declined. I want to implement page which says...
1
2354
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, I have a webpage designed with asp.net 2.0. Is there a way to display a "please wait" message to the screen horizontally centered and veritcally 20px from the VISIBLE top of the page, regardless of what kind of scrolling the user has done? I am currently displaying a "please wait" message (the DIV section shown below, which i'm...
0
7858
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. ...
0
8085
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...
1
7614
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...
0
7928
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6206
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...
1
5469
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5185
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3615
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...
0
3598
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.