Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFoutput tag Usage

Status
Not open for further replies.

DouglasF

Technical User
Oct 25, 2001
11
CA
<CFoutput> Usage:

Is it good practice to use one <CFoutput> </CFoutput> surrounding a whole template or use multiple uses where the CF code needs it throughout the page? Would the template process faster if multiple CFoutput's are used? Does having HTML between the tag slow the page processing?
 
Hi,
CF application server returns the HTML code as it is, so it doesn't matter if you put HTML tags within the CFOUTPUT tags. I think it's better to use the CFOUTPUT tag on-demand.

Goodluck
 
insert createodbctime(now()) at teh begining

run alot of html / cf code with <cfoutput> surrounding the entire template. loop it a few thousand times.

insert another createodbctime(now()) in a seperate field at the end.

datediff the two times.

do it again with <cfoutput> used on demand.

see what you get.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top