Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / April 2005



Tip: Looking for answers? Try searching our database.

CFSET and Quotation Marks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fs22 - 28 Apr 2005 22:31 GMT
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,vDocumentNumber) 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
trjlove - 29 Apr 2005 16:32 GMT
bookmark this site

http://www.lookuptables.com/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.