If i'm doing something like that then this is how I do it...


<cfsilent>

[do stuff]

<cfif error_condition>


    <cfsavecontent variable="errormessage">
      <cfinclude template="error_message.cfm">
    </cfsavecontent>     

<cfelse>
    [do more stuff]
</cfif>

</cfsilent>


<cfif IsDefined("errormessage")>
    <cfoutput>#errormessage#</cfoutput>
    <cfabort>
</cfif>


[rest of code not needing to be in CFSILENT]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to