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

Frameset appears to freeze

Guys,

I have a three frame frameset: a title bar at top, a menu bar on the left, and a "main" frame where the business logic happens.

On one page, I need to offer an "Export to Excel" button. When I click this button the download happens, but then the menu bar appears to freeze. What happens is that the page selected is created and sent, but the page offering "Export to Excel" is just redisplayed, so nothing appears to happen.

The above problem only occurs if I save the CSV file to disk. Displaying in Excel with the "Open" option does not cause this.

My code is below:

Response.Buffer = true;
Response.ContentType = "text/plain";
Response.AddHeader("Content-Disposition", "attachment; filename=MyFile.csv");

string FileContents = "Number,Again\r\n";
for (int ctr = 1; ctr <= 10; ctr++)
{
FileContents += ctr.ToString() + "," + ctr.ToString() + "\r\n";
}
Response.Write(FileContents);
Response.Flush();
Response.SuppressContent();
Response.End();

Thanks,
Simon.
Nov 18 '05 #1
0 854

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

Similar topics

7
by: Scott | last post by:
I need help to modify the code below to pass url variables from a framset. The click to run this will be in the mainFrame. This script works well in a non-frame page. Grabs the current url...
1
by: Bongolation | last post by:
I've looked in the FAQ and didn't see anything on this. There must be a simple solution to this VERY common problem: A site featuring many text articles and archives has a frameset of two...
3
by: Christopher C. Stacy | last post by:
I have a page that looks like: <html> <head><blah></head> <form id="me"> <input id="foo" type="hidden"...> <frameset> <frame id="here" ...> </form> ....</html>
2
by: dan | last post by:
Hello - I'm working on a page that will deliver a frameset under certain conditions and delivers a normal page under other conditions. I would like to avoid using a redirect so that the URL...
11
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each...
5
by: Mariame | last post by:
Hi Everyone, I have a frameset Web Page contains 2 frame , first one have a banner, logo and menu second frame called "content" and it appears in it all page in site is it possible that i send a...
1
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket)....
3
by: mark4asp | last post by:
According to this <http://css-discuss.incutio.com/?page=BoxModelHack> IE6 will display differently to the W3C standard. Only IE6/strict and I suppose IE 7 display correctly. IE 6 transitional and...
3
by: Pikachu | last post by:
The stupid thing is saying there is no border. My page is written as such: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <head> <META...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.