Problem when Download MS-Word documents using ASP.NET & C# because of 'DAP'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Srinivas Dammalapa
    New Member
    • Mar 2008
    • 1

    Problem when Download MS-Word documents using ASP.NET & C# because of 'DAP'

    Sir,

    I am D.Srinivas. I am working on JobPortal Website(www.tla bsinc.com).

    I am downloading MS-Word document using ASP.NET 2.0 & C# 2.0. I am using IE (Internet Explorer). In my localhost it is working fine.

    After giving to Client, it is not working fine. Because, Client has installed 'Download Accelerator Plus (DAP)'. Because of that(DAP) software, instead of downloading Resumes(word document), it is downloading source code in different format.

    Please help me because I am doing JobPortal website project.

    I used the following code for downloading MS-Word document or Text document.

    protected void lbtWordDoc_Clic k(object sender, EventArgs e)
    {

    Response.Conten tType = "Applicatio n/msword";
    string FilePath = MapPath("~//Resumes//" + UserId + ".doc");
    Response.WriteF ile(FilePath);
    Response.Append Header("content-disposition", "attachment ; filename=" + FilePath);
    Response.End();

    }


    Regards,
    D.Srinivas.
Working...