Ok, responding to my own email here. The author of the article is a good friend of mine so I spoke to him about this. Apparently what he means is that you can write a function that applies SPECIFICALLY to the instance of the textbox. I.e., I can write a function just for txtCustomer, an instance of button. He mentioned that when you work with foo.aspx, you end up with a page called foo.aspx.cs that is tied to the original page. Forgive me if I don't quite get the terminology correct.
This is certainly possible in CF. You could easily write a button.cfm that says, if <caller>.cfm.cs exists, cfinclude it and handle any events if they are defined in <caller>.cfm.cs. While it may not be as built-in as ASPX, I'd say it's doable. <CAVEAT!!!>Again, I'm not an ASPX expert, so feel free to pick this apart.</CAVEAT> ======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 17, 2003 11:54 AM > To: CF-Talk > Subject: RE: RE: RE: RE: MSDN on CF -> ASP.net > > > What you mean the objects on the page, you mean these things: > > <asp:textbox id="txtCustomer" width="462px" runat="server" /> > > If I use > > <tags:textbox> > > I can very easily edit textbox.cfm to change how the textbox acts. > > > Please show me the equivalent CF code. Then we can make a > comparison. > > First we need to get an understanding of what you mean. > > ============================================================== > ========== > === > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > (www.mindseye.com) > Member of Team Macromedia > (http://www.macromedia.com/go/teammacromedia) > > Email : [EMAIL PROTECTED] > Blog : www.camdenfamily.com/morpheus/blog > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 17, 2003 11:45 AM > > To: CF-Talk > > Subject: Re: RE: RE: RE: MSDN on CF -> ASP.net > > > > > > You can change the properties of objects on the page in a > > different place than where the object is instantiated. > > > > Please show me the equivalent CF code. Then we can make a > comparison. > > > > ----- Original Message ----- > > From: Raymond Camden <[EMAIL PROTECTED]> > > Date: Thursday, July 17, 2003 11:37 am > > Subject: RE: RE: RE: MSDN on CF -> ASP.net > > > > > Um, how is this any different from > > > > > > <cfimport ...> > > > > > > <body> > > > > > > Customer name <tag:foo> > > > > > > ? > > > > > > > > > ====================================================================== > > > == > > > === > > > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > > > (www.mindseye.com) > > > Member of Team Macromedia > > > (http://www.macromedia.com/go/teammacromedia) > > > Email : [EMAIL PROTECTED] > > > Blog : www.camdenfamily.com/morpheus/blog > > > Yahoo IM : morpheus > > > > > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] [EMAIL PROTECTED] > > > > Sent: Thursday, July 17, 2003 11:24 AM > > > > To: CF-Talk > > > > Subject: Re: RE: RE: MSDN on CF -> ASP.net > > > > > > > > > > > > Sure.. > > > > > > > > Here's my .aspx page... > > > > > > > > <% Page Inherits="myPage" CodeBehind="myPage.aspx.cs" %> > > > > > > > > <html> > > > > <head> > > > > <title>My Page</title> > > > > </head> > > > > > > > > <body> > > > > > > > > Customer Name: > > > > <asp:textbox id="txtCustomer" width="462px" runat="server" /> > > > > > > > > <br> > > > > > > > > <asp:button id="btnSave" text="Save" runat="server" > > > > cssclass="button" /> > > > > > > > > </body> > > > > </html> > > > > > > > > Here's my codebehind page... > > > > > > > > using System; > > > > using System.Web; > > > > using System.Web.UI; > > > > using System.Web.UI.WebControls; > > > > using System.Web.UI.HtmlControls; > > > > > > > > public class maintainGroup : System.Web.UI.Page > > > > { > > > > protected System.Web.UI.WebControls.TextBox txtCustomer; > > > > protected System.Web.UI.WebControls.Button btnSave; > > > > > > > > // Runs when the page loads > > > > protected void Page_Load(object sender, System.EventArgs e) > > > > { > > > > // Let's give the textbox some text. > > > > txtCustomer.Text = "Hello There!"; > > > > // Let's give it a maxlength. > > > > txtCustomer.MaxLength = 255; > > > > > > > > // Let's make the button call a method when it's clicked. > > > > btnSave.Click += new EventHandler(this.FooBar); > > > > } > > > > > > > > protected void FooBar(object sender, System.EventArgs e) > > > > { > > > > // Let's change the text in the button. > > > > btnSave.Text = "You clicked me!"; > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > From: Raymond Camden <[EMAIL PROTECTED]> > > > > Date: Thursday, July 17, 2003 10:35 am > > > > Subject: RE: RE: MSDN on CF -> ASP.net > > > > > > > > > Can you give a very small example of this, i.e. real code? > > > > > > > > > > > > > > > > > > > > ====================================================================== > > > > > == > > > > > === > > > > > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > > > > > (www.mindseye.com) > > > > > Member of Team Macromedia > > > > > (http://www.macromedia.com/go/teammacromedia) > > > > > Email : [EMAIL PROTECTED] > > > > > Blog : www.camdenfamily.com/morpheus/blog > > > > > Yahoo IM : morpheus > > > > > > > > > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > > > > > > > > -----Original Message----- > > > > > > From: [EMAIL PROTECTED] [EMAIL PROTECTED] > > > > > > Sent: Thursday, July 17, 2003 10:21 AM > > > > > > To: CF-Talk > > > > > > Subject: Re: RE: MSDN on CF -> ASP.net > > > > > > > > > > > > > > > > > > The paragraph is correct. > > > > > > > > > > > > You can write a presentation layer in ASP.NET with > absolutely > > > > > > zero application logic. All the time. With no exceptions. > > > > > > > > > > > > This still isn't possible in CF, or JSP, or ASP, or > > PHP, etc... > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: Mike Brunt <[EMAIL PROTECTED]> > > > > > > Date: Thursday, July 17, 2003 10:07 am > > > > > > Subject: RE: MSDN on CF -> ASP.net > > > > > > > > > > > > > I'm on my way out so can't read all, but paragraph 3 > > > > deserves some > > > > > > > kind of > > > > > > > response: - > > > > > > > > > > > > > > "ColdFusion follows the same development and page > > > > execution model > > > > > > > as that of classic ASP, PHP, JSP, and other similar > > > > Web-scripting > > > > > > > languages. Specifically, code is embedded in HTML > > > > markup, and as a > > > > > > > given > > > > > page > > > > > > > executesfrom top to bottom, the output of the > > code's execution > > > > > > > takes the place of the embedded code in the resulting HTML > > > > > > > document. This > > > > > development > > > > > > > model is > > > > > > > easy to grasp, but it does have a number of > drawbacks. Chief > > > > > among > > > > > > > these is > > > > > > > the lack of separation between application logic and > > > > > presentation > > > > > > > markup.Mixing code and presentation makes the > code harder to > > > > > read, > > > > > > > which increases > > > > > > > the time and effort involved in maintenance, and creates > > > > > significant> > challenges for non-programming graphic > designers > > > > > who need to > > > > > > > modify a page. > > > > > > > Over the years, ColdFusion has introduced several ways to > > > > > mitigate > > > > > > > this lack > > > > > > > of separation, including custom tags, and others-but the > > > > > > > fundamental model remains." > > > > > > > > > > > > > > What about cfc's and for those who really want to move > > > more OO > > > > > > > concepts CF and Mach II. This is typical MS BS and > > > deserves a > > > > > > > response > > > > > from > > > > > > > MM in my > > > > > > > opinion. (A lot of bloody abbreviations there!). > > > > > > > > > > > > > > Kind Regards - Mike Brunt > > > > > > > Webapper Services LLC > > > > > > > Web Site http://www.webapper.com > > > > > > > Blog http://www.webapper.net > > > > > > > > > > > > > > Webapper <Web Application Specialists> > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Jesse Houwing [EMAIL PROTECTED] > > > > > > > Sent: Thursday, July 17, 2003 8:44 AM > > > > > > > To: CF-Talk > > > > > > > Subject: MSDN on CF -> ASP.net > > > > > > > > > > > > > > First it explains what both ASP.net and Coldfusion are and > > > that > > > > > > > they share a similar background. A simpel feature > > > comparison is > > > > > > > used to > > > > > show > > > > > > > how one can > > > > > > > convert a Coldfusion Application to ASP.net. > > > > > > > > > > > > > > It contains a few errors, especially 'forgetting' to > > > > mention that > > > > > > > a lot of functionality is available in the standard JAVA > > > API's > > > > > > > which > > > > > van be > > > > > > > directlyaccessed from coldfusion (Image support in > > ASP.net is > > > > > also > > > > > > > only available > > > > > > > through teh .Net framework, the same applies to SAX XML > > > > > support and > > > > > > > Threading). > > > > > > > > > > > > > > They conclude that ASP.net is more reliable, faster > > > > scaling better > > > > > > > etc. etc. without showing any figures ro numbers. > > > > > > > > > > > > > > Read it for yourself: > > > > > > > > > > > > > > > > > http://msdn.microsoft.com/library/default.asp?url=/library/en- > > > > > > > us/dnaspp/html/coldfusiontoaspnet.asp > > > > > > > > > > > > > > Jesse > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

