Grouping Commonly-used Methods

  • Thread starter Thread starter Myk Quayce
  • Start date Start date
M

Myk Quayce

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 said:
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....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top