473,795 Members | 3,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Starting Download Problem with IIS 6


I am attempting to make a small popup window push a downloaded file.
What works fine with the Visual Studio 2005 web server does not appear
to work with IIS6.

My main page code looks like this:

LiteralControl litMove = new LiteralControl( );
litMove.Text = @"
<script language='JavaS cript'>
<!--
var dlWindow = window.open('th eFile', 'fileDl',
'toolbar=1,loca tion=0,director ies=0,status=0, menubar=0,scrol lbars=0,resizab le=0,width=10,l eft=10,height=2 4');
//-->
</script>
";
litMove.Text = litMove.Text.Re place( "theFile" , theFile );
this.pageBody.C ontrols.Add( litMove );

The actual download code (in a new page appearing as "theFile" in the
previous code page above) looks like this:

Response.Clear( );
Response.AddHea der( "Content-Disposition" , "attachment;fil ename=" +
HttpUtility.Url PathEncode(myFi le) );
Response.AddHea der( "Content-Length" , new FileInfo( fullFilePath
).Length.ToStri ng() );
Response.Conten tType = "applicatio n/octet-stream";
Response.Transm itFile( fullFilePath );
Response.End();

What happens is that on IIS6, the popup appears for 1/2-second and
disappears. On the Visual Studio Cassini server, the window appears
and then the user is prompted for save.

Users are IE7 clients.

Thanks.

Jan 16 '07 #1
0 930

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

Similar topics

40
1900
by: Geoff Cox | last post by:
Hello, The following code works with document.getElementById('picture').src = window.src; but not if I increase the index to 1, ie document.getElementById('picture').src = window.src;
2
1532
by: belial | last post by:
Hi! I am new on the group and join in as i am in bad need of help in C programming.I'm a fresher and got to tackle the basics of C in the next few months,so i wonder if anyone on that group could 1) give me the address of some site offering free C compilers,etc on downloads since i got lost in searching 2)some good resources about C programming, codes, how to built functions ... in fact anything that someone starting up programming in C...
2
1179
by: Tassos | last post by:
Hi, I know that I need some public token keys or something like that to allow my application to run over internet on a local host. Is there any tutorial how to do that? (In german language I will love it) My Problem is that if you start the app over the right path (actualy http://localhost/pro/test.exe) I got an error while try to acces SQL database. If I give permission to all assemblies used by this application it works. But On a Update of...
3
1731
by: fred bliss | last post by:
Hi All We have a new server running the latest framework, windows server 2003 & IIS 6.0, and we're getting the following error when we try to load the app in IE. Server Error in '/webreporting' Application. ----------------------------------------------------------- ---------------------
12
4787
by: Prabu Subroto | last post by:
Dear my friends... I am using postgres 7.4 and SuSE 9.1. I want to use auto_increment as on MySQL. I look up the documentation on www.postgres.com and I found "serial" . But I don't know how to create auto_increment. here is my try:
4
10637
by: anne001 | last post by:
Hi For a class, students are going to run an experiment on line. Each time a subject runs, his/her data is appended to one giant text file. Their own data set will be just one line starting with the keyword they gave as identification. The faculty does not want the students to be able to download and see the giant data file. He wants the students to only download and see the data that starts with their own identification tag.
1
9657
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
2
1715
by: agisoec | last post by:
Hi, All, I'm a bit new to this forum, and not too sharp at designing pages, so please bear with me. I posted a question in another forum and it was suggested that it might be better here. I have built a web page (HTML) and a PDF document. I can upload these and anything else I need to my ISP server. I know that if there is a HTML link to the PDF document, and someone viewing the page clicks on the link, the PDF will open on their computer...
1
2696
by: laredotornado | last post by:
Hi, I just installed the most recent version of ruby and rails on my Fedora Core 5 Linux system. For some reason, my server isn't starting, but I noticed one line upon startup: =Rails application starting on http://0.0.0.0:3000 Shouldn't rails be booting on 127.0.0.1 or localhost or whatever? I didn't read anything about adjusting this setting on the rails
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10164
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.