Global access of Enum

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have an Enum which I need to use in many pages and many classes written in
asp.net 2.0
I would like to have a central repository for the enum so that changes can
be made once. Also I would like a global access to it, meaning any page
should be able to access it. How can I achieve this ?
 
What I would do is have it in a base page, then have all your pages inherit
from this page instead of the standard .Page object. This is a great idea for
sharing items among all pages in your site.
 
Hi,

just add a new file to the project ( a "class file" is ok ) and declare the
enum there. It will be accesible to all classes in your project


cheers,
 

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

Similar Threads


Back
Top