> That's one that uses a MasterPage as well (from a site I'm building right
> now). Mind you, VS takes care of this. Yet in still, you can't control the
> page in the component or tag in CF like you can in ASP.NET.
Why not?
All you have to do is invoke an object and init the constructor (even
if you do not pass anything to the constructor) at the top of the
ColdFusion template page.
Page directive in ASP.NET:
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="_Default" %>
Page directive in CF:
<cfinvoke component="path.default" method="Page_Load">
For Code-Behind in ASP.NET:
Partial Class _Default
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
resultLabel.Text = Application("userCount")
End Sub
End Class
For Code-Behind in CF:
<cfcomponent>
<cffunction name="Page_Load" access="public">
<cfset request.resultLabel = applicaion.usercount>
</cffunction
</cfcomponent>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262172
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4