How to prevent the web server from executing the ASP codes
- When we type an ASP code such as <% Response.write("Hello") %>, the web server will execute it. But how we can do to prevent the web server from executing this ASP code?
- The solution is using Server.HTMLEncode method:
<%
Response.write(Server.HTMLEncode("<% Response.write("Hello") %>"))
%>
No comments:
Post a Comment