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/