download file in iframe in IE
Posted
by Estelle
on Stack Overflow
See other posts from Stack Overflow
or by Estelle
Published on 2010-04-20T15:30:50Z
Indexed on
2010/04/20
15:33 UTC
Read the original article
Hit count: 258
iframe
|response.write
in a webpage I have a link to let the user download file, such as,
"showfile.aspx?filename=xxx"
in showfile.aspx, I send the file using Response.OutputStream.Write method.
now I get some problem when somebody put this webpage in an IFrame and open in IE, as I checked the code, showfile.aspx is requested twice when clicks the link, and in the second time the cookies of authorization and session Id are missing. I tried to add the p3p header but not working.
my question is, is this how the IE designed with iframe? is there anyway to work around? thanks.
© Stack Overflow or respective owner