vu3lmg
asked on
During deployment, Storing Database connection info in web.config
I am developing a web application using ASP.NET 3.5, VS 2008, SQL Server 2005, C#.
I have created a deployment project for installing a web applicaitoin.
How do I get database info from the user (installing application) and store it in the web.config file ?
I have created a deployment project for installing a web applicaitoin.
How do I get database info from the user (installing application) and store it in the web.config file ?
ASKER
JohnADavidson
My question is :
"How to modify the web.config file while the appliation is being installed ? "
What do I do in the Setup-Deploy project to store new DB info in the web.config file ?
My question is :
"How to modify the web.config file while the appliation is being installed ? "
What do I do in the Setup-Deploy project to store new DB info in the web.config file ?
Are you wanting to change the web.config setting after you have deployed?
ASKER
Yes. During the deployment, user will provide the DB connection info.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
private static string ConnectionString = ConfigurationManager.Conne
Once the connection string is in place you should be able to access data as you normally would with loops or databinding.
Open in new window