ColdFusion CFsetting - How to use enablecfoutputonly attribute

CFsetting - enablecfoutputonly attribute

cfsettingEnablecfoutputonly.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfsetting: how to use enablecfoutputonly attribute in cfsetting</title>
</head>

<body>
<h2 style="color:DeepPink; font-style:italic">cfsetting tag example: how to use enablecfoutputonly attribute</h2>
<hr width="600" align="left" color="OrangeRed" />
<br />

<cfset MyRandomNumber=RandRange(1,100)>

<cfsetting enablecfoutputonly="no">
<h3 style="color:SeaGreen">
 My random number: <cfoutput>#MyRandomNumber#</cfoutput>
</h3>

<cfsetting enablecfoutputonly="yes">
<h3 style="color:SeaGreen">
 My random number: <cfoutput>#MyRandomNumber#</cfoutput>
</h3>

</body>
</html>





More ColdFusion examples