Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
fs22 #1
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
-
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... -
Replacing quotation marks
The following removes any unwanted apostrophes before being inserted into an sql database: Articletext = replace(articleText,"'","''") ..but... -
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.... -
Quotation marks
How can I make correct quotation marks insted of inches? -
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... -
trjlove #2
Re: CFSET and Quotation Marks
have you tried using #chr(34)# where you need the quotes?
trjlove Guest
-
fs22 #3
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
-
trjlove #4
Re: CFSET and Quotation Marks
bookmark this site
[url]http://www.lookuptables.com/[/url]
trjlove Guest
-



Reply With Quote

