Click here to Skip to main content
15,917,618 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
Roger Wright1-Jun-03 22:28
professionalRoger Wright1-Jun-03 22:28 
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
David Wulff2-Jun-03 3:59
David Wulff2-Jun-03 3:59 
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
Paul Watson2-Jun-03 4:04
sitebuilderPaul Watson2-Jun-03 4:04 
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
Jason Henderson2-Jun-03 2:58
Jason Henderson2-Jun-03 2:58 
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
Roger Wright2-Jun-03 6:35
professionalRoger Wright2-Jun-03 6:35 
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
Rocky Moore16-Jun-03 0:39
Rocky Moore16-Jun-03 0:39 
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
Roger Wright16-Jun-03 7:30
professionalRoger Wright16-Jun-03 7:30 
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
Rocky Moore16-Jun-03 14:59
Rocky Moore16-Jun-03 14:59 
How do you turn off buffer, is in IIS or in the script on the page with Response.Buffer = FALSE?


Here is a little test script:

<% Response.Buffer = TRUE %>
<html>
<!-- -------------------------------------
     -------------------------------------
     -------------------------------------
     -------------------------------------
     -------------------------------------
     -------------------------------------
     -------------------------------------
 -->
<body>
<p>Hello There</p>

<% response.flush 
   for i = 1 to 5000000
   next
%>

<p>Something to happen</p>

<% response.flush
   for i = 1 to 5000000
   next
%>

<p>Ok</p>

</body>

</html>


This works on my system with a buffered page. If you turn off buffering and drop the flush lines, it should work the same. Had to add the comment section to give the page enough bulk to be accepted. If I remove them, it will process the entire page even with the flush lines before it is actual written out.

The true question here though is if you are using redirect or transfer. If you are using redirect, you can scrap this entire idea. The redirect it a special header sent that has to be sent first. Thus nothing will be displayed and it will redirect to a new page. Does not matter if you flush or not, the header has to be first.

Server.Transfer does not work since it has already output the header information for the request and the Server.Transfer just continues the stream that was already started.

The best solution in situations such as this is to use a meta tag refresh for the time you want to cycle. You can then redirect the page to itself or any other page. You would use something like:



That would refresh that page in the client's browser in 4 seconds and send it to the url listed. The added benifit is that if the user hits their refresh button before the 4 seconds is up, it will cut short their wait.

Rocky Moore <><
GeneralRe: Isn't This Fun? (ASP Session Problem) Pin
Roger Wright16-Jun-03 15:32
professionalRoger Wright16-Jun-03 15:32 
GeneralIXMLHTTPRequest returning XML data from cache Pin
tcs31-May-03 6:30
tcs31-May-03 6:30 
GeneralWebService Behavior Pin
theJazzyBrain31-May-03 1:48
theJazzyBrain31-May-03 1:48 
GeneralNPV from VBScript in ASP page Pin
PJM10030-May-03 5:27
sussPJM10030-May-03 5:27 
GeneralData Reader Serialisation in web service Pin
shalender29-May-03 1:25
shalender29-May-03 1:25 
GeneralRe: Data Reader Serialisation in web service Pin
Jeffry van de Vuurst29-May-03 9:16
Jeffry van de Vuurst29-May-03 9:16 
Generaljust got broadband!!! Pin
stephen.hazel28-May-03 19:19
stephen.hazel28-May-03 19:19 
GeneralRe: just got broadband!!! Pin
J. Dunlap28-May-03 19:53
J. Dunlap28-May-03 19:53 
GeneralRe: just got broadband!!! Pin
SimonS31-May-03 12:07
SimonS31-May-03 12:07 
GeneralWin ME - PWS Pin
Sarvesvara (BVKS) Dasa28-May-03 4:42
Sarvesvara (BVKS) Dasa28-May-03 4:42 
GeneralRe: Win ME - PWS Pin
TPN29-May-03 19:42
TPN29-May-03 19:42 
GeneralRe: Win ME - PWS Pin
super29-May-03 21:53
professionalsuper29-May-03 21:53 
GeneralRe: Win ME - PWS Pin
Sarvesvara (BVKS) Dasa1-Jun-03 0:26
Sarvesvara (BVKS) Dasa1-Jun-03 0:26 
Generalinstantiate .NET type inside web page Pin
Michal Januszczyk27-May-03 10:11
sussMichal Januszczyk27-May-03 10:11 
GeneralRe: instantiate .NET type inside web page Pin
John Kuhn29-May-03 10:39
John Kuhn29-May-03 10:39 
QuestionCreating Simple Password Protection : the Best Way? Pin
Burty27-May-03 0:37
Burty27-May-03 0:37 
AnswerRe: Creating Simple Password Protection : the Best Way? Pin
Roger Wright27-May-03 6:40
professionalRoger Wright27-May-03 6:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.