From: Tomas on
Hello,

I am responding file stream from ASP.NET and IE block such response and
security panel appears at the top of IE
asking to confirm accept. Is it posssible to overcome this IE issue?

Regards,
Tomas


From: Fernando Rodriguez, MCP on
I assume you mean that you're using Response.WriteFile to return a file to
the browser from an aspx file? If so what is the file type and what kind of
behavior are you expecting?

You should set the ContentType property to the type of the file that you're
streaming, for example, if it's an html text file you can do
'Response.ContentType = "text/html"' before calling WriteFile and the file
will display as a normal html page, if it's an image you should set it to
"image/jpeg" where jpeg would be the type of your image file, and so on...

Regards,
Fernando Rodriguez, MCPD


"Tomas" <tomas(a)nomeil.com> wrote in message
news:#dBd96O2IHA.3920(a)TK2MSFTNGP02.phx.gbl...
> Hello,
>
> I am responding file stream from ASP.NET and IE block such response and
> security panel appears at the top of IE
> asking to confirm accept. Is it posssible to overcome this IE issue?
>
> Regards,
> Tomas
>
From: Tomas on
Yes, I use Response.WriteFile to send PDF file, the problem not in sending
file but that IE show Security Warning and Block output file.


"Fernando Rodriguez, MCP" <usenet-spam(a)cfl.rr.com> wrote in message
news:g4b8qt$rrk$1(a)aioe.org...
>I assume you mean that you're using Response.WriteFile to return a file to
>the browser from an aspx file? If so what is the file type and what kind of
>behavior are you expecting?
>
> You should set the ContentType property to the type of the file that
> you're streaming, for example, if it's an html text file you can do
> 'Response.ContentType = "text/html"' before calling WriteFile and the file
> will display as a normal html page, if it's an image you should set it to
> "image/jpeg" where jpeg would be the type of your image file, and so on...
>
> Regards,
> Fernando Rodriguez, MCPD
>
>
> "Tomas" <tomas(a)nomeil.com> wrote in message
> news:#dBd96O2IHA.3920(a)TK2MSFTNGP02.phx.gbl...
>> Hello,
>>
>> I am responding file stream from ASP.NET and IE block such response and
>> security panel appears at the top of IE
>> asking to confirm accept. Is it posssible to overcome this IE issue?
>>
>> Regards,
>> Tomas
>>