I an trying to open word document on hyperlink click. Now below code is opening dialogbox ans asking for saving.
How to open directly word document without user asking dialogbox for saving or open? just need to popup with word doc.
Response.Clear()
Response.ContentType = "application\msword"
Dim file As New System.IO.FileInfo(Server.MapPath("/UserManual\Carangi Reunderwriting Website User Manual.docx"))
Response.AddHeader("Content-Disposition", "inline; filename=" + file.Name)
Response.AddHeader("Content-Length", file.Length.ToString())
Response.TransmitFile(file.FullName)
Response.Flush()
Response.End()