> Before ASP.NET, "classic" ASP didn't have code-behind - you > either wrote external COM objects and invoked them from ASP, or you wrote > your code inline.
Dave, When I learned of the MVC pattern I quickly jumped on the bandwagon because I liked the idea of separating out the logic (controller) from the template (view). Obviously it is better to have some separation so as to limit spaghetti code. You said that in classic ASP this separation was accomplished by invoking external COM objects. That sounds like what I am trying to accomplish by encapsulating my controller logic into components. However, we can invoke methods directly from a form by giving the action a value of our component path and adding a hidden form element with the name of the method to invoke. That would be similar to Post Back in ASP.NET I think. So in ColdFusion we can: 1. Invoke a component and init the constructor on page request 2. Invoke a components methods on form submission It seems that these two things really perform all of the Page Directive and Post Back functionality of .NET's Code-Behind technique. As you stated, this can be done without a one-to-one relationship between pages and components, but I want the one-to-one relationship because that is what you have in the MVC design pattern. You are right, using components versus using a template for your controller layer really won't change the user's experience. However, I really don't understand Microsoft's boast in that regard either because Post Back requires a page refresh. -Aaron ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:262155 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

