Hello Steve,
Since the class in your case is a small helper class specific to the
ASP.NET application(you put it in App_Code directory), you can simply put
those methods within one class. Also, using mutiple classes to group
methods of different categories should be a good practice, for your
scenario, you can group those helper methods which perform control
collection manipulation into a single class.. And of course, you can put
multiple classes in single code file if they have the similar functions.
If you want to design some formal and reusable class library components,
you can consider following some more detailed coding and designing
guideline and best practices. Here is a web article on C# coding style
guide:
#C# Coding Style Guide
http://www.csharpfriends.com/Article...?articleID=336
BTW, if you have interests, you can have a look at the following book which
is recommended by many developers for .net class library and framework
designing(I've bought one myself :-)):
#Framework Design Guidelines
http://www.amazon.com/gp/product/032...2?v=glance&n=2
83155
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.