Reputation: 189
I have added an HTML file to my solution in VS2010. How do you create a call to open the HTML file? For example when a user clicks a button it will locate the HTML file in my solution and open it in the web browser.
Upvotes: 2
Views: 24355
Reputation: 61
System.Diagnostics.Process.Start(
Server.MapPath("~/HtmlFileFolderNameInSolution/") + "HtmlFileName.htm"
);
This will open HTML file in new tab of same browser...
Upvotes: 0