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

IE modifying filename specified in content type response

I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp

May 3 '06 #1
7 1587
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:65**********************************@microsof t.com...
I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp

May 3 '06 #2
It will exist on the user's PC... but the prompt is within the
OPEN/SAVE/CANCEL dialog... before you even pick a target for the install.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp

"MSDN" wrote:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:65**********************************@microsof t.com...
I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp


May 3 '06 #3
good enough and if it does not exist then you still get
Product[1].License.lic even for the first time.

Does the name Product a reserved word.

What happens if you just, for testing only, use Product.lic or
Product.License what happens?

SA

"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:07**********************************@microsof t.com...
It will exist on the user's PC... but the prompt is within the
OPEN/SAVE/CANCEL dialog... before you even pick a target for the install.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp

"MSDN" wrote:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:65**********************************@microsof t.com...
> I've got an page used for downloads that acts similarily to the MSFT
> downloads.... page displays and refreshes itself which causes a XML
> file
> to
> be streamed to the client.
>
> The streaming of the file is working fine, however, IE is mucking the
> the
> filename I specify. For example, I'm specifying the filename
> "Product.License.lic", but IE displays "Product[1].License.lic". See
> code
> below... ideas?
>
> Response.ContentType = "text/xml";
> Response.AddHeader("content-disposition",
> "attachment;filename=Product.License.lic");
> Response.BinaryWrite(buffer);
> Response.End();
>
> --
> -AC [MVP MCMS]
> http://www.andrewconnell.com
> http://www.andrewconnell.com/mvp
>


May 3 '06 #4
Same result.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp

"MSDN" wrote:
good enough and if it does not exist then you still get
Product[1].License.lic even for the first time.

Does the name Product a reserved word.

What happens if you just, for testing only, use Product.lic or
Product.License what happens?

SA

"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:07**********************************@microsof t.com...
It will exist on the user's PC... but the prompt is within the
OPEN/SAVE/CANCEL dialog... before you even pick a target for the install.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp

"MSDN" wrote:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:65**********************************@microsof t.com...
> I've got an page used for downloads that acts similarily to the MSFT
> downloads.... page displays and refreshes itself which causes a XML
> file
> to
> be streamed to the client.
>
> The streaming of the file is working fine, however, IE is mucking the
> the
> filename I specify. For example, I'm specifying the filename
> "Product.License.lic", but IE displays "Product[1].License.lic". See
> code
> below... ideas?
>
> Response.ContentType = "text/xml";
> Response.AddHeader("content-disposition",
> "attachment;filename=Product.License.lic");
> Response.BinaryWrite(buffer);
> Response.End();
>
> --
> -AC [MVP MCMS]
> http://www.andrewconnell.com
> http://www.andrewconnell.com/mvp
>


May 3 '06 #5
I tried your code:

When I use just Product.lic I get "Product.lic" < Correct
When I use just Product.License I get "Product.License" < Correct
When I use Product.License.lic I get Product[1].License.lic

So not the same thing happens.

SA
"MSDN" <sq**********@hotmail.com> wrote in message
news:u6**************@TK2MSFTNGP04.phx.gbl...
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:65**********************************@microsof t.com...
I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp


May 3 '06 #6
Yes, different result. The more research I do, the more it sounds like this
is something handled by the browser... and not something we have control
over. Oh well.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp

"MSDN" wrote:
I tried your code:

When I use just Product.lic I get "Product.lic" < Correct
When I use just Product.License I get "Product.License" < Correct
When I use Product.License.lic I get Product[1].License.lic

So not the same thing happens.

SA
"MSDN" <sq**********@hotmail.com> wrote in message
news:u6**************@TK2MSFTNGP04.phx.gbl...
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:65**********************************@microsof t.com...
I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp



May 3 '06 #7
Oh well, may be send a zipped file that expands to Product.License.lic

"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:40**********************************@microsof t.com...
Yes, different result. The more research I do, the more it sounds like
this
is something handled by the browser... and not something we have control
over. Oh well.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp

"MSDN" wrote:
I tried your code:

When I use just Product.lic I get "Product.lic" < Correct
When I use just Product.License I get "Product.License" < Correct
When I use Product.License.lic I get Product[1].License.lic

So not the same thing happens.

SA
"MSDN" <sq**********@hotmail.com> wrote in message
news:u6**************@TK2MSFTNGP04.phx.gbl...
> Product.License.lic already exists ???
> Is that why it is adding Product[1].License.lic
> does it add Product[2].License.lic?
>
> SA
>
>
> "AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
> news:65**********************************@microsof t.com...
>> I've got an page used for downloads that acts similarily to the MSFT
>> downloads.... page displays and refreshes itself which causes a XML
>> file
>> to
>> be streamed to the client.
>>
>> The streaming of the file is working fine, however, IE is mucking the
>> the
>> filename I specify. For example, I'm specifying the filename
>> "Product.License.lic", but IE displays "Product[1].License.lic". See
>> code
>> below... ideas?
>>
>> Response.ContentType = "text/xml";
>> Response.AddHeader("content-disposition",
>> "attachment;filename=Product.License.lic");
>> Response.BinaryWrite(buffer);
>> Response.End();
>>
>> --
>> -AC [MVP MCMS]
>> http://www.andrewconnell.com
>> http://www.andrewconnell.com/mvp
>>
>
>


May 3 '06 #8

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

Similar topics

2
by: Kit Truong | last post by:
Hello, I have an asp page that produces output from a database. This allows a simple way for the user to save the data to a text file by going to File->Save as... The default save as options...
5
by: Ariel Dolan | last post by:
Can I use HtmlInputFile to only get the selected file name but not actually upload the file? Clicking the control's Browse button let's the user select a file. All I need is the HtmlInputFile...
3
by: zweng | last post by:
I checked a few sites on exporting data from asp.net to excel and most of them point to the same source a http://support.microsoft.com/default.aspx?scid=kb;EN-US;317719 with some modifications My...
4
by: Todd Perkins | last post by:
Hello all, surprisingly enough, this is my first newsgroup post, I usually rely on google. So I hope I have enough info contained. Thank you in advance for any help! Problem: I am getting...
1
by: ad | last post by:
I use the code below to export the content of a data set to Excel, the code come form http://www.dotnetjohn.com/articles.aspx?articleid=36 But it always use the web form's name as the default...
6
by: Henke | last post by:
I have a web application that is used to transfer files to and from a database. The files are streamed and stored in the database that is. From one page I can download the files to the client, by...
4
by: Jed | last post by:
I have looked everywhere and cannot find a resolution for this. I have read several post on this forum that allude to similar issues but I have not found a solution. I am sending dynamic...
2
by: tedqn | last post by:
I use the Stream method to serve certain file types to the user. If the type is pdf, it opens in the browser fine. My problem is with those that the browser doesn't have plug-ins such as ppt, word,...
0
by: jinnareddy | last post by:
Hi, I'm unable to download a file that is having a 2-byte char in its name (e.g.テ) using force download option. Though, am able to download file names involving ASCII chars. I have tried URL...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
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...

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.