Code-Behind and class files all end up compiling to dll's (One dll per namespace). You end up moving the dll's to your bin directory under your virtual directory. Remember if you are using code-behind you don't need to move your .vb or .cs files to your production/testing servers, because all of the code ends up in the <namespace>.dll files.
Most people use code-behind for code specific to one page or usercontrol. Many people use separate code files for reusable code like data access and business logic. Similar to classic asp when most people put data/business logic into COM. Andrew Zetterman -----Original Message----- From: Travis D. Falls [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 11:57 AM To: dotnet Subject: Namespace vrs codebehind. when do I use namespace vrs. codebehind. I don't understand. with namespace where do I put my code on the server? t --- You are currently subscribed to dotnet as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --------- Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/ --- You are currently subscribed to dotnet as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] --------- Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/
