Results 1 to 3 of 3

Thread: Quotes within Quotes within Quotes problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    70
    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?




  2. #2
    Guest
    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

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Use the Chr() function and pass 34 (Chr(34)) and concatenate it into your string where you need the double quotes.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    monte96_@hotmail.com
    monte96@vbgarage.com


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width