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

IE Save Dialog Security Warning

P: n/a
Hi all,

We have an asp.net 2.0 page with a button.
On clicking the button we redirect to another page which downloads a file.

When we deploy on the web server we are gretting a security warning saying that
"Internet Explorer blocked this site from downloading files to your computer. click here for options".

Our code is as follows:

Response.Buffer = false;
Response.BufferOutput = false;
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
Response.ContentType = "application/zip";
Response.WriteFile(filepath);
HttpContext.Current.ApplicationInstance.CompleteRe quest();

How can we avoid this security warning and get the save dialog directly?

Any Ideas?

Thanks in advance

Charles Mifsud
Aug 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Charles Mifsud napisaƂ(a):
Hi all,

We have an asp.net 2.0 page with a button.
On clicking the button we redirect to another page which downloads a file.

When we deploy on the web server we are gretting a security warning
saying that
*"Internet Explorer blocked this site from downloading files to your
computer. click here for options"*.

Our code is as follows:

Response.Buffer = false;
Response.BufferOutput = false;
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment; filename=" +
filename + "");
Response.ContentType = "application/zip";
Response.WriteFile(filepath);
HttpContext.Current.ApplicationInstance.CompleteRe quest();

How can we avoid this security warning and get the save dialog directly?

Any Ideas?
Yep.
It's nothing you can do with it in ASP.NET.
It's browser's setting and only browser's user (or network
administrator) can turn it off.

--
PP

Aug 12 '06 #2

P: n/a
Why when you are downloading something from the microsoft site the warning
comes on the save dialog but the yellow bar with the security warning does
not come?

We would like to remove the yellow bar warning underneath the address bar
saying click here to download.

Thanks in advance

Charles

"Przemek Ptasznik" <pp******@mila.wywal.to.edu.pllwrote in message
news:eb**********@inews.gazeta.pl...
Charles Mifsud napisal(a):
>Hi all,
We have an asp.net 2.0 page with a button.
On clicking the button we redirect to another page which downloads a
file.
When we deploy on the web server we are gretting a security warning
saying that
*"Internet Explorer blocked this site from downloading files to your
computer. click here for options"*.
Our code is as follows:
Response.Buffer = false;
Response.BufferOutput = false;
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment; filename=" +
filename + "");
Response.ContentType = "application/zip";
Response.WriteFile(filepath);
HttpContext.Current.ApplicationInstance.CompleteR equest();
How can we avoid this security warning and get the save dialog directly?
Any Ideas?

Yep.
It's nothing you can do with it in ASP.NET.
It's browser's setting and only browser's user (or network administrator)
can turn it off.

--
PP

Aug 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.