displaying .aspx and .aspx.cs files such that its not understood by the browser
Posted
by user287745
on Stack Overflow
See other posts from Stack Overflow
or by user287745
Published on 2010-05-29T10:59:26Z
Indexed on
2010/05/29
11:02 UTC
Read the original article
Hit count: 343
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
© Stack Overflow or respective owner