|
-
Apr 5th, 2001, 09:36 PM
#1
Thread Starter
Frenzied Member
ok i forgot how to do this i want to be able to show <HTML> instead of it being coed how do i do this?
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Apr 6th, 2001, 03:35 AM
#2
Frenzied Member
use < and >
Code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<pre>
<html>
<head>
<!-- comments-->
</head>
</html>
</pre>
</body>
</HTML>
is this what you mean?
-
Apr 6th, 2001, 07:07 AM
#3
Thread Starter
Frenzied Member
kind of i know there is a code like <text> or something that what ever is in between these inclosures they display the code without running it automatically
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Apr 6th, 2001, 07:16 AM
#4
-
Apr 7th, 2001, 12:09 PM
#5
PowerPoster
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Apr 8th, 2001, 10:36 AM
#6
or how about:
To display HTML code on your page, if you are using ASP, you can do this:
<%=Server.HTMLEncode("<table>")%>
It will embed it as <table> in your HTML, resulting in the display of <table>.
-
Apr 8th, 2001, 12:23 PM
#7
Thread Starter
Frenzied Member
what if i dont add ")%> to the end will it still work ?
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Apr 8th, 2001, 01:29 PM
#8
No, you are sending information to a function. You can put more inside the function, but you can not omit the end stuff.
The string to be displayed goes in the ""
The string sent to the function goes in the ()
Any VBScript code must be inside <% %> tags.
Are you trying to put more information inside the function? If so, go ahead, but you still must keep the end stuff.
Example:
Code:
<%=Server.HTMLEncode("<table>")%> <br>
<%=Server.HTMLEncode("<tr>")%><br>
<%=Server.HTMLEncode("<td>Enter your table data here</td>")%><br>
<%=Server.HTMLEncode("</tr>")%><br>
<%=Server.HTMLEncode("</table>")%>
Hope that helps clarify it some more. I would read up on ASP if you don't understand why it works. A good book would be the Sams Teach Yourself ASP 3.0 in 21 Days. It was written by the guys at www.4guysfromrolla.com. Another great place to go.
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
|