Couple of softball questions on OOP and ASP.NET:
1. I am a bit uncomfortable with tangling class code with UI elements (e.g. result.innertext = object.method). Is it more customary to store some of the heavy-lift object class code elsewhere and simply call the objects from the aspx.cs. So, the aspx.cs does minimal processing, instead mapping results to the appropriate form elements?
2. If yes to #2, do I simply add new classes to my project? Is there any disadvanatge to this?
My thanks!
Paul
Hi,
yes you can put your heavy lifting in separate classes and call these from your codefile. In ASP.NET 2.0 you can keep those classes in the App_Data subfolder. You can even intermix several different .NET enabled languages:Using VB.NET and C# in the same ASP.NET 2.0 project.
Also take a look at thePersonal Starter Kit which shows some examples of this as well.
Grz, Kris.
Thanks for the help. I am off and running.
p
0 comments:
Post a Comment