displaying asp code

Results 1 to 4 of 4

Thread: displaying asp code

  1. #1
    Join Date
    Dec 1969

    Default displaying asp code

    hi <BR>I want to display some aspcode on a site <BR>but of course if i do &#060;%response.write "hello world" %&#062; then it comes out in the browser as hello world <BR>how can i get iis top ignore the asp tags ?<BR>is there an easy way of doing this ?<BR>i know to display html you can just surround the html you want to show with &#060;paintext&#062; tags<BR>thanks ;)<BR>thanks

  2. #2
    BAM Guest

    Default Try this...

    &#060;% Response.Write "&#060;%response.write "Hello World" %&#062;"%&#062;

  3. #3
    RDM Guest

    Default Replace

    Replace the value coming out of the database first:<BR><BR> sVal = Replace(sVal,"&#060;%","%&lt;")<BR><BR> Do this with other script tags as well<BR> sVal = Replace(sVal,"&#060;SCRIPT","&lt;SCRIPT")

  4. #4
    RDM Guest

    Default typo

    sVal = Replace(sVal,"&#060;%","&lt;%")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts