ASP classic -> ASP.NET C#

B

Bob

In classic ASP, I used to keep a constant file that contains site
configuration settings. For example,

Const SITE_BACKGROUND_COLOR = "#909090"
Const APPLICATION_NAME = "My Financial Site"
Const UPLOAD_DIRECOTRY = "C:\uploads\"

And then I'll include this constant file in all of my classic ASP pages.

From a code maintenance stand-point, if I need to carry site config settings
in ASP.NET C#, should I continue to carry a constant file as above? Or is
there a better way.

Thank you!
ASP.NET C# Newbie
 
S

Sharon

Hi Bob.
You can get a better answer if you post this question in:
microsoft.public.dotnet.framework.aspnet
There are other ways to do this, one is to store your settings in xml file.
Web.config can be used for this purpose, or you can create your own file.
Visual constants like SITE_BACKGROUND_COLOR should be stored
as classes in a css file.
Regards,
Sharon.
 

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

Top