View Full Version : Inserting ASCii Codes into Database

Pepe, the bull
04-18-2007, 01:17 AM

I am working with an ASP web calendar for my classroom, which has event titles and event descriptions for homework assignments. Those values are taken from text areas and inserted into an Access database. I want to type HTML code into a text box to link to a PDF file that I want the students to be able to download. However, when this information is inserted into the database I have a problem.

The < and > are changed to their ASCii HTML names &lt; and &gt; which makes my link look like &lt;a href="file.pdf"&gt;Download&lt;/a&gt; (which obviously doesn't work).

Is their any way to keep the text area from using the HTML names?

04-18-2007, 05:04 AM
did you write the code for the calendar or is it a premade application? they could have a replace function that they use for issues like the < > and replacing them with their ascii form. you could find that code and remove that or you can run your own replace when posting the code back to the page.

Pepe, the bull
04-18-2007, 06:08 PM
It is a premade application. I found the code to fix it. Thank you.