MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 831

Developing coldfusion mx applications
Table of Contents

Advertisement

<cfcontent
type = "text/html"
file = "C:\CFusionMX\wwwroot\myapps\cfcontent_message.htm"
deleteFile = "No">
</body>
</html>
If necessary, edit the
4
Save the file as cfcontent.cfm in the myapps directory under your web_root and view it in the
5
browser.
The text of the called file (cfcontent_message.htm) displays as normal HTML, as shown in the
following figure:
In cfcontent.cfm, change
6
Save the file and view it in the browser (refresh it if necessary).
7
The text displays as unformatted text, in which HTML tags are treated as text:
The following example shows how the cfcontent tag can create an Excel spreadsheet that contains
your data.
line to point to your myapps directory.
file =
type = "text/html"
to
type = "text/plain"
.
Using cfcontent
831

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents