none
Download File to client side in Asp.net IE 7.0 not supporting RRS feed

  • Question

  • Hi,

    I have develop a web application into silverlight with SQL Server database.

    In my application there is Email module I try to dowload attachment file from email using below code. (I try to open new page and start downloading using below code into new page Page_Load event. My data contain into binary file not a simple file)

    if (emailAttachment != null && emailAttachment.Data != null)

    {

    Response.Clear();

    Response.AppendHeader("Content-Disposition", "attachment; filename=\"" + emailAttachment.FileName + "\";");

    Response.ContentType ="application/octet-stream"; 

     //Response.OutputStream.Write(emailAttachment.Data, 0, emailAttachment.Data.Length); 

    //Response.Write(emailAttachment.Data);

    Response.BinaryWrite(emailAttachment.Data); 

    Response.End();

    else

    {return;}

    This code is working into all browser perfactly but into IE 7.0 it is not working I do not know how.

    I am missing something or it is security issue if yes then how to solve the security issue.

    So Please reply me as soon as possible.

    Thanks,

    Gaurang

    Tuesday, May 10, 2011 6:32 AM

Answers

  • HI,

    I resolved this issue I change the security level and change the Internet | Protected Mode: on/off then immediatly my downloading start into new page.

    Thanks,


    Vaishnav Gaurang
    Tuesday, May 10, 2011 12:03 PM