Classic ASP BasicsFor beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have a classic ASP page and I have an input field where users can enter a Title of a speech and the information is saved to the database and then i need to display this information in the same input field when the user re-opens the speech record. I was having problems displaying quotes and special characters but i'm now able to do this using:
<CODE>
<INPUT.... VALUE="<%Server.HTMLEncode(varSpeechName)%>"
</CODE>
However, when testing i notice this: I am to enter the characters: <>
and i'm able to save these to the database but when i display these chars in the input field it must be thinking its html tags and it shows some HTML/javascript in the cell where i have a button for that record on the page. It shows:
<CODE DISPLAYED>
)){this.form.submit()}else{return false}" align="top">
</CODE DISPLAYED>
how do i get around this? Thanks