PDA

Click to See Complete Forum and Search --> : Quotes within Quotes within Quotes problem


rlb_wpg
Oct 20th, 2000, 04:17 PM
I'm creating an asp page which will, of course, create
an html page.

The html page needs a line similar to this:
<input type=text name="FromDate" size=15
STYLE="Height: 24px; Width: 120px">
<a href="javascript:show_calendar('callcount.FromDate');"
onmouseover="window.status='Date Picker';return true;"
onmouseout="window.status='';return true;">
<img src="./Images/show-calendar.gif"
width=24 height=22 border=0></a>

My problem is:
"window.status='Date Picker';return true;"

Because when using asp to create the html page it looks
like:
" 'window.status='Date Picker';return true;' "

Is there a way to have double quotation marks appear in
the html page created?

Oct 20th, 2000, 06:32 PM
You can use two doublequotes together inside your strings like:

Response.Write "<A HREF=""whatever.htm"" onMouseOver=""window.status='Whatever'; return true;"">Whatever</A>" & vbcrlf

Paul

monte96
Oct 21st, 2000, 11:49 AM
Use the Chr() function and pass 34 (Chr(34)) and concatenate it into your string where you need the double quotes.