displaying .aspx and .aspx.cs files such that its not understood by the browser
- by user287745
i have to give the user the option to upload his own aspx and aspx.cs files on to the server,
adjust the hyperlink to point to a page which would do the following
display the aspx and aspx.cs files code onto the page without actually rendering the code
the browser should not understand anything,
and
while reading the files to display them the method be such that nothing is processed on the server regarding the code within the files to prevent from unnecessary problems many user would try to cause.
i have tried many ways of displaying it but it ends up on displaying the actual comments instead of the code.
please suggest with links to examples how to achieve the above.
please note main concentration is on asp.net and c# using vs08, so j script and ready-made tools be avoided if feasible
thank you all