Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Conditionals in web.config


  • Please log in to reply
No replies to this topic

#1 reachpradeep

reachpradeep

    CC Regular

  • Just Joined
  • PipPipPip
  • 41 posts

Posted 05 March 2007 - 06:39 AM

I have a development version of my application and an extranet version. both are on the same server. one folder is called application and the other is called application.extranet (for example).

I have one database for the dev site and one for the extranet site. Right now, I have to update the web.config manually when i publish the website so that it uses the extranet version of the database. Since both versions are on the same web server, is there a way to write a conditional in the web.config so that the right database will be used based on the folder name?
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download