Murray Brown
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.
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.
ASKER
Hi
Thanks. Is it possible to programatically change the web.config connection info?
Thanks. Is it possible to programatically change the web.config connection info?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
thanks very much
You would need to change connection string in web.config so that all changes would be visible for whole website.