Help with Quotes

Discussion in 'ASP General' started by scott, Jun 7, 2005.

  1. scott

    scott Guest

    Can someone help me my quotes in LISTING 2 below? LISTING 1 works fine in
    HTML, but I'm having trouble with quotes in LISTING 2 near the javascript
    code when trying to response write the entire button code.



    LISTING 1: HTML
    <INPUT TYPE=BUTTON VALUE="<< Previous <%=iMaxRecords%> Records"
    ONCLICK="document.location.href='paging.asp?iPage=<%=iPage-1%>'">


    LISTING 2: ASP
    Response.Write "<INPUT TYPE=BUTTON VALUE=<< Previous" & iMaxRecords &
    "Records ONCLICK="document.location.href=""paging.asp?iPage=" & (iPage -1) &
    """>"
    scott, Jun 7, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris White

    Quotes/Double Quotes in Image Control

    Chris White, Sep 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,823
    Hermit Dave
    Sep 22, 2004
  2. Chris
    Replies:
    1
    Views:
    13,586
    Oisin
    Mar 24, 2006
  3. Lawrence Tierney

    Multiline quotes - escaping quotes - et al

    Lawrence Tierney, Dec 24, 2003, in forum: Java
    Replies:
    3
    Views:
    4,474
    Andrew Thompson
    Dec 24, 2003
  4. jOhn
    Replies:
    1
    Views:
    207
    Phlip
    Jan 29, 2008
  5. Richard Sandoval
    Replies:
    5
    Views:
    184
    7stud --
    Apr 26, 2011
Loading...

Share This Page