473,387 Members | 1,502 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,387 software developers and data experts.

Response.flush not displaying content

I'm trying to fire a pop-up window before I execute a lengthy stored
procedure so I may utilize this window as a status window on number of
records executed. After my response.write statements which include the
javascript I call the flush mehtod, which seems is ignored? However
when I mimic the same process using a loop (and no ado object) the
flush works correctly. Does anyone have any suggestions why this is
not working or a work around? Below are two sample code snippets 1st
does not work however 2nd works?

Thanks in advance for any input!

***** Does not work? ***
If sAction = "s" Then ' submit clicked

Response.Write("<script language=""Javascript"">")
Response.Write("var objWin = window.open ""http://www.yahoo.com"",
""mywin")
Response.Write("objWin.focus();")
Response.Write("</script>")
Response.Flush

' open DB
' execute stored procedure statement
' clean ado.connection object

end if

**** Does work *****
If sAction = "s" Then ' submit clicked
For i=0 to 10000

response.Write("@= " & i & "<br>")
if (i = 20) Then
Response.Write("script language=""Javascript""")
Response.Write("var objWin = window.open(""http://www.yahoo.com"",
""mywin"");")
Response.Write("objWin.focus();")
Response.Write("/script")
End If
response.Flush
If Not Response.IsClientConnected Then
response.End
End If
Next
end if

Dec 8 '05 #1
0 4159

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

Similar topics

0
by: Copa | last post by:
Hello, I am testing buffering an asp page and Flushing information out to the browser, hence i wrote the code in an asp page that follows this Message Post. The loops are suppose to simulate...
1
by: alex | last post by:
I need your help, please. The following 2.asp is a demo for flush function. It works. BUT when I put it in a frame, it dosen't work. Is any IE limitation, something else. Alex ...
3
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like...
7
by: Stephanie | last post by:
If response.buffer is set to true, and no response.flush has been executed, is it accurate to expect that my browser should not be rendering the content which I (well Ok, someone else) is sending...
2
by: David Union | last post by:
Hi. I'm posting this here because I don't know exactly what the best group is. This is for an aspx page with Visual Basic as the code-behind page. I am doing very simple code... in the middle...
3
by: masoud bayan | last post by:
Hi, I am developing an asp.net page that iteratively (inside a loop) calls a web service at the backend and shows the result to user. For this purpose I should update page with the web...
3
by: Lars Netzel | last post by:
I want to press a Linkbutton (in a DatagridItem) and return a file that is not shared in the IIS. I want to disallow "deeplinking". The following code works fine (it sends the file I want) but I...
3
by: MJP | last post by:
I have a button which kicks off the generation of a report after which the file will be downloaded. The report generation can take a long time, so client side onclick event of the button also...
2
by: Michael D. Ober | last post by:
When I single step through the code below, it sends back the PDF file that is retrieved in the line fm.GetAccountPDF(...). When I run without single stepping, I get the master page for this page. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...

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.