How a doc file can be open inside browser without prompting the download dialog box

By adding inline header.

....
Response.AddHeader("Content-Type","application/ms-word");
....
Response.AddHeader("Content-Disposition","inline;filename=file.doc");
Response.ContentType = "Application/ms-word";
        Response.AppendHeader("Content-Disposition", "attachment; filename=70-503.doc");
        Response.TransmitFile(Server.MapPath("~/70-503.doc"));
        Response.End();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.