Professional Web Applications Themes

CFSET and Quotation Marks - Coldfusion - Advanced Techniques

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 vDoentType, vDoentNumber, vWarning If Not TCP.bDoentInProcess(vDoentType,vDoentNumb er) Then Exit Sub Select Case vDoentType Case 'Order' vWarning = '<p><b>You have an unsubmitted order in ...

  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 vDoentType, vDoentNumber, vWarning
    If Not TCP.bDoentInProcess(vDoentType,vDoentNumb er) Then Exit Sub
    Select Case vDoentType
    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 doent 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. #2

    Default Re: CFSET and Quotation Marks

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

  3. #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

  4. #4

    Default Re: CFSET and Quotation Marks

    bookmark this site

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

  5. #5

    Default Re: CFSET and Quotation Marks

    Thank you.
    fs22 Guest

Similar Threads

  1. anybody getting quotation marks
    By mgarbe in forum Macromedia Flash Player
    Replies: 1
    Last Post: May 11th, 08:16 PM
  2. Quotation marks in a data field
    By lther in forum Macromedia ColdFusion
    Replies: 2
    Last Post: March 31st, 10:10 PM
  3. Replacing quotation marks
    By J. Muenchbourg in forum ASP
    Replies: 6
    Last Post: November 14th, 03:27 PM
  4. Tyogrpaher's Quotation Marks?
    By greenchain webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 4
    Last Post: August 27th, 08:40 PM
  5. Quotation marks
    By Pyro Dude webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 15th, 05:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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