Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2002
    Location
    Columbus, GA
    Posts
    81

    Question Unanswered: Using Quotations In ASP

    I need to be able to use Quaotations within my ASP code but am not sure if its possible.

    Heres an example, I have a variable

    SetDisplayText = "<a href='" & SetLinkAction & "' onclick="NewWindow(this.href,'name','300','125','n o');return false;">" & SetCurrentNumber & "</a>"

    On the OnClick, it has ("), I cannot use the tick mark (') becuase it is containined within the OnClick which sets the popup window size.

    I remeber an older language where you coukd type something like /"/ and it wouldnt recognize it as closing the quotations.

    The way the code above works now, after onclick where the (") is, it ends the text and starts asp.

    So basically, is there a way to include a quotation (") within asp while making it look like text instead of iopening and closing the tag?

  2. #2
    Join Date
    Dec 2002
    Location
    Columbus, GA
    Posts
    81

    Thumbs up

    I was able to figure it out. You use 2 sets of quotations instead of 1.

    See new code

    SetDisplayText = "<a href=""" & SetLinkAction & """ onclick=""NewWindow(this.href,'name','300','125',' no');return false;"">" & SetCurrentNumber & "</a>"

  3. #3
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    you can also use the chr function (I think it's chr(34) but I can't be certain).

Posting Permissions

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