Results 1 to 8 of 8

Thread: show html

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    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/

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    use &lt; and &gt;

    Code:
     
    
    <HTML>
    <HEAD>
    
    </HEAD>
    <BODY>
    <pre>
    
    &lt;html&gt;
      &lt;head&gt;
      &lt;!-- comments--&gt;
      &lt;/head&gt;
    
    
    
    &lt;/html&gt;
    </pre>
    
    </body>
    </HTML>
    is this what you mean?
    Mark
    -------------------

  3. #3

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    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/

  4. #4
    anoop007
    Guest
    <pre>
    and
    </pre>

  5. #5
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    and <xmp>

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  6. #6
    hellswraith
    Guest
    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 &lt;table&gt; in your HTML, resulting in the display of <table>.

  7. #7

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    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/

  8. #8
    hellswraith
    Guest
    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
  •  



Click Here to Expand Forum to Full Width