I don't know if this is a stupid question but..
Is it possible in either ASP.NET (either C# or VB#) to Response.Write() the contents of another HTML file? If so, how?
I don't know if this is a stupid question but..
Is it possible in either ASP.NET (either C# or VB#) to Response.Write() the contents of another HTML file? If so, how?
You can get all the lines into a string array and send them out directly.
Just don't forget to set your headers up correctly because this will just inject HTML. It won't set up any special headers that might be expected (if any).
I know this is an old question, but I have another solution for future researching. How about just use TrasmitFile? i.e.:
Read the HTML file line by line and write it using Response.Write()