By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,278 Members | 2,218 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,278 IT Pros & Developers. It's quick & easy.

IE modifying filename specified in content type response

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.