Whatever message this page gives is out now! Go check it out!

WriteBody

Last update:
May 18, 2026

Description

Writes an output to a page. WriteBody should be used within a tag with a body only.

Category

Syntax

WriteBody(value)

Parameters

Parameter
Description
value
A string or any variable.

See also

Example

<cfscript>
       query = {datasource="cfartgallery",name="x" };
       cfquery(attributeCollection=query)
       {
          writeBody("select * from art where artistid=1 and artid = "); 
                                                                                     
          cfqueryparam(value="1",cfsqltype="CF_SQL_INTEGER");
        }
        WriteDump(x);           
</cfscript>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page