Forum Moderators: open

Message Too Old, No Replies

ASP Display Problem

         

kevinj

9:07 pm on Jul 13, 2003 (gmt 0)

10+ Year Member



I'm setting up a content management system for a client. The HTML gets entered into the database like:

To provide excellence in health care and to promote lifelong wellness in the communities we serve.</TD>

The problem is when I have the ASP page display that line from the database, it displays it like this:

To provide excellence in health care and to promote lifelong wellness in the communities we serve.&lt;/TD&gt;

Is there a way to get it to display it so the HTML will be read? Some way to encode it so the characters don't get converted to their HTML equivalent?

I'm using a simple Response.Write for the display

<%= PAGE_CONTENT %>

Thanks,
Kevin

hakre

9:14 pm on Jul 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi kevinj,

maybe this helps:

<% Response.Buffer = false %>

or remove the </td> at the end of the string and use the following:

<%= PAGE_CONTENT %></td>

kevinj

11:33 pm on Jul 13, 2003 (gmt 0)

10+ Year Member



Thanks hakre, the Response.Buffer=false works perfectly!

hakre

11:37 pm on Jul 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



this is an old asp bug if i remember correctly. it was because these sort of bugs i quitted using it. ;)