PDA

View Full Version : Hide ASP page


Hirameck
03-12-2003, 08:14 PM
Hi!
How do I hide the code of an ASP page?:(

Morgoth
03-12-2003, 08:28 PM
That's funny. Why would you need to hide your ASP code?

ASP code IS NOT SENT to the client's computer, any user that connects to your server does not see ASP, they see only what is a result, either text or HTML.

Do you understand?

Would you like an example?


Example:
My code:

<%
Response.Write "Trees are fun and big!"
Response.Write "<BR>"
Response.Write "They really are!"
If 1 = 1 Then
Response.Write "<BR>" & "HAPPY!"
End If
%>


If that is my code, all that you can view in the source is:

Trees are fun and big!<BR>They really are!<BR>HAPPY!

And on the screen you will see:

Trees are fun and big!
They really are!
HAPPY!


So technically, you don't need to hide your ASP.

Unless you have another reason, please explain if you are trying to hide it for another reason...