ASP.NET application on the default page I have to create two links that refer to PDF files.
Example:
<a href="Private/UserDocs/SIPCustomerUserGuideV2-2013.pdf" target="_blank">
Code structure where the PDF file exists is:
Web.FormProject/Private/UserDocs/SIPCustomerUserGuideV2-2013.pdf
Above Web.FormProject is a folder, Private is a sub folder in Web.FormProject and UserDocs is a sub folder under Private folder. And the file resides in UserDocs.
When I try using the above the URL gives me nothing not even an error.
But when I change my hyperlink to
after putting the file in the Web.Form project (and not under any sub folder) it works fine.
I have even tried the same with asp:hyperlink does not work.
It only worked when I tried it with asp:LinkButton with code in the server side but the Content:Disposition "inline: ... in the Response.AppendHeader("Content-Disposition", "inline; filename=SIPCustomerUserGuideV2-2013.pdf"); opens it in the same browser and I want it to open in a new browser" But I would like a solution to use it as a hyperlink given above. Please reply.
Question:
How do I make it the PDF open from the Web.Form Project/Private/UserDocs/path.
thanks in advance.