D
David Hearn
I have a laptop that I am developing my ASP.NET app on while in the office
and I connect to our SQL database located on the network in the office.
However, when I take the machine home, I connect to a local copy of the
database that is on my machine. I have added a key in the web.config file
which I access and it works for all of the manually written connections that
I have but I have a few SQL Connections that I have dragged and dropped from
the toolbox onto a few of my web forms. These have the connection string
hard coded into the page. My question is how do I change the strings for
these connections so that they will work no matter which database copy I am
using?
Thanks in advance!
and I connect to our SQL database located on the network in the office.
However, when I take the machine home, I connect to a local copy of the
database that is on my machine. I have added a key in the web.config file
which I access and it works for all of the manually written connections that
I have but I have a few SQL Connections that I have dragged and dropped from
the toolbox onto a few of my web forms. These have the connection string
hard coded into the page. My question is how do I change the strings for
these connections so that they will work no matter which database copy I am
using?
Thanks in advance!