Open a pdf file from D drive using asp hyperlink [Resolved]

Posted by Nksingh420 under ASP.NET on 5/19/2014 | Points: 10 | Views : 2535 | Status : [Member] | Replies : 1
i want to open a file using click on hyperlink and my file is saved in D://Doc




Responses

Posted by: Sheonarayan on: 5/19/2014 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
You might not do that by specifying a physical path as this physical path may not exists in the clients machine.

To open a file that is not in the root of the application, you can create a virtual path in the IIS under your hosted application and specify path.

To know how what is virtual directory and how to create it, visit this http://www.dotnetfunda.com/forums/show/2063/what-is-virtual-directory

Thanks


Regards,
Sheo Narayan
http://www.dotnetfunda.com

Nksingh420, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response