specify url in web.config

  • Thread starter Thread starter GrantMagic
  • Start date Start date
G

GrantMagic

I am currently managing a number of websites, all following the same
structure.
However, when I launch a new website, I have to go through every page to
find and replace the base url's.

I would like to store the url in the web.config file so I would only need to
change this in one place.

Does this create unnecessary overhead, or is this a good method to solve my
problem
 
should work fine. This is what I do to differentiate the DEV, Test and Prod
setups.
All identical with different Web.config files.

Curt
 
web.config is fine. You might want to create your own xml file and SiteUrls
class if you need more flexibility (over caching, sharing, expandability,
strongly-typed)....

Karl
 

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