|
-
Jan 12th, 2001, 05:48 PM
#1
Thread Starter
Hyperactive Member
How do I display html and asp tags and code on an asp page as text(without executing)?
I'm able to use char(num) to get the html tags as text but not the asp "<%%>" 's
-
Jan 12th, 2001, 09:31 PM
#2
New Member
For the HTML, you can use the <plaintext> tags:
<plaintext>This is the text and/or html you want to display</plaintext>
For the ASP, simply use the URLEncoded versions of the <% and %> to display the "<%","%>" tags:
<%<br>
for i = 1 to 10<br>
Response.Write "hello world"<br>
next<br>
%><br>
Hope that helps...
JeffB
-
Jan 13th, 2001, 01:57 AM
#3
Junior Member
Reply
Hello,
Use the HTMLEncode() method. It will work.
Bye and have a good time programming.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|