DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Display ASP Tags as it is

  1. #1
    Dana Guest

    Display ASP Tags as it is


    How do I get ASP to display tags as it is without interpreting it.
    For eg:
    If I want to dispay Sprea<br>dsheet
    it displays is as

    Sprea
    dsheet

    Which I do not want it to happen.
    It should be displayed as sprea<d>dsheet.

    can someone help?

    thanks


  2. #2
    Kris Eiben Guest

    Re: Display ASP Tags as it is

    Try this:
    mystring = "Sprea<br>dsheet"
    mystring = replace(mystring, "<","&lt;")
    response.write mystring

    Dana wrote in message <39aa8d0f$1@news.devx.com>...
    >
    >How do I get ASP to display tags as it is without interpreting it.
    >For eg:
    >If I want to dispay Sprea<br>dsheet
    >it displays is as
    >
    >Sprea
    >dsheet
    >
    >Which I do not want it to happen.
    >It should be displayed as sprea<d>dsheet.
    >
    >can someone help?
    >
    >thanks
    >




  3. #3
    Adrian Forbes Guest

    Re: Display ASP Tags as it is

    response.write Server.HTMLEncode("Sprea<br>sdheet")

    Dana <allpeaches@yahoo.com> wrote in message
    news:39aa8d0f$1@news.devx.com...
    >
    > How do I get ASP to display tags as it is without interpreting it.
    > For eg:
    > If I want to dispay Sprea<br>dsheet
    > it displays is as
    >
    > Sprea
    > dsheet
    >
    > Which I do not want it to happen.
    > It should be displayed as sprea<d>dsheet.
    >
    > can someone help?
    >
    > thanks
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center