CFSET and Quotation Marks

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFSET and Quotation Marks

    I have a page that generates an html attachment and sends it in email to an
    admin. The page is an asp page. my problem is that the asp page code requires
    double quotes, which will mess up my code. Here is my code...

    <cfset page1 = "<%Response.Buffer = True%>
    <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
    <html>...yada yada yada...

    Here is the asp code in question...

    <%
    'Dim TCP
    'Set TCP = Server.CreateObject('triadasp.cls3asp')
    Sub InProcessWarning
    Dim vDocumentType, vDocumentNumber, vWarning
    If Not TCP.bDocumentInProcess(vDocumentType,vDocumentNumb er) Then Exit Sub
    Select Case vDocumentType
    Case 'Order'
    vWarning = '<p><b>You have an unsubmitted order in process. '
    Case 'Quote'
    vWarning = '<p><b>You have an unsubmitted quote in process. '
    End Select
    If Not vWarning = '' Then
    vWarning = vWarning & 'You can resume work on this document from the <a
    href='lineitems.asp'>Review</a> screen.</b></p>'
    End If
    If Not vWarning = '' Then Response.Write(vWarning)
    End Sub
    %>">

    So, I need a way to be able to generate this code on the fly so that the asp
    server understands it and yet the cfserver does not throw errors when
    processing it.

    Thoughts?

    ~Clay

    fs22 Guest

  2. Similar Questions and Discussions

    1. anybody getting quotation marks
      so every time i attempt to install flash 8, it prompts me if i want to run activeX controls, i click yes, i see the green/red/blue square for a...
    2. Replacing quotation marks
      The following removes any unwanted apostrophes before being inserted into an sql database: Articletext = replace(articleText,"'","''") ..but...
    3. Tyogrpaher's Quotation Marks?
      Is there a way to get typographer's or "smart" quotes to display in Fireworks? I've yet to find how to do this. I'm running OSX and FireWorks MX....
    4. Quotation marks
      How can I make correct quotation marks insted of inches?
    5. how to handle single quotation marks
      Just wonder how you guys handle the single quatation marks when you write the value of a text input into SQL server. Thanks! * * * Sent via...
  3. #2

    Default Re: CFSET and Quotation Marks

    have you tried using #chr(34)# where you need the quotes?
    trjlove Guest

  4. #3

    Default Re: CFSET and Quotation Marks

    Thanks! It worked perfectly. Ya know I thought it was something like that
    because javascript does something similar. My problem was that I could not find
    a listing of the codes to know what number to use with what tag. Do you know
    where a code number listing is located for reference?

    ~Clay

    fs22 Guest

  5. #4

    Default Re: CFSET and Quotation Marks

    bookmark this site

    [url]http://www.lookuptables.com/[/url]
    trjlove Guest

  6. #5

    Default Re: CFSET and Quotation Marks

    Thank you.
    fs22 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139