Link to home
Create AccountLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net best way for user to change location of Access database

Hi

I have an ASP.net site that sits on an IIS Server accessing an Access database somewhere else on the network. This database is periodically moved to a different location and I want to know the best way for a USER to change the location so that all my VB.net code automatically picks up this location. On a LAN what is the best way to do this? I see the Access Data Source control. Is this an option? If I put it in the web config area then this has to be changed in code.
Avatar of Vikram Singh Saini
Vikram Singh Saini
Flag of India image

The best place for changing common configurations of website is Web.config.

You would need to change connection string in web.config so that all changes would be visible for whole website.
Avatar of Murray Brown

ASKER

Hi

Thanks. Is it possible to programatically change the web.config connection  info?
ASKER CERTIFIED SOLUTION
Avatar of Vikram Singh Saini
Vikram Singh Saini
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
thanks very much