Web Hosting Talk







View Full Version : ASP escape character


ilyash
09-22-2004, 11:23 PM
string x

x = "<input type="hidden"...>"


how do i escape the " ?

in jave it would be:

x = "<input type=\"hidden\"...>"

mwaseem
09-23-2004, 01:21 AM
Use single quote (') instead of " when you'r already inside a double quote (") i.e.

x = "<input type='hidden'>"

ACW
09-24-2004, 10:52 PM
You can also use two sets of double quotes just like a SQL statement.

x = "<input type=""hidden"">"