Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Any good idea on this?
How do i open htm file from asp.net web form application?
I have some htm file which are stored in web server, i need to open (view only) those files from my web app.
Open as a new browser (tab or new window).
I used
HyperLink
NavigateUrl


And how do i test it in my local iis? How do i set my local folder as web server?
Thank you.

What I have tried:

Got error : Open local file not allowed. Do i need to set permission for that folder in web server?
Posted
Updated 14-Sep-20 22:23pm
v2

So, do some research on server-side file access from a WebForm. Relevant content is a Google away: [^]

And, keep in mind that security configurations vary: you may need to frame your question very specifically in terms of the context in which the WebForm is running, and the context in which the server is running.
 
Share this answer
 
After almost half day googling, i solved it out.
I used virtual directory to make reference that folder path in web server.
Thanks guys :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900