Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to open a file for a magazine. It has images, cssstyles,javascript and pages using html. The aspx.cs open the javascript and the css files but I can't load the html file. The original program opened the issues using javascript. In order to have a response magazine, I need to change the pages from javascript to html. Thus I need to have the aspx.cs open the html pages. I have stream reader on the aspx.cs file.
Do you have any ideas on how I can do this.
Thanks,Jen
I am using visual studio 2017 and it c#

What I have tried:

I have tried turning the html into a string and that has not worked.
Posted
Updated 30-Jan-19 5:01am

1 solution

Look at Response.WriteFile(pathToMyHtmlFile)
 
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