By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,796 Members | 1,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,796 IT Pros & Developers. It's quick & easy.

Grouping Commonly-used Methods

P: n/a
I'm writing a website using Notepad and ASP.NET and C#, and I'm trying to
determine the best way of grouping commonly-used methods so they can be
accessed by many .aspx pages.

Any help would be greatly appreciated. TIA

--

Myk Quayce

"Whatever happened to all the fun in the world?" - Frank Zappa
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Myk Quayce wrote:
I'm writing a website using Notepad and ASP.NET and C#, and I'm trying to
determine the best way of grouping commonly-used methods so they can be
accessed by many .aspx pages.

Any help would be greatly appreciated. TIA


Definitely in a class, actually I should say classes, laid out in an
object model that makes sense to your application; this organization can
be more involved if you know some OO, or usually more novice users
create what are essentially utility classes (classes w/ static methods).

Now if these are all page-specific methods, you could have a class
inherit from Page (e.g. BasePage) and put them in there, then change all
of your existing aspx classes to inherit from BasePage.

HTH, even tho I didn't know your comfort level w/ OO....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.