Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have to connection string as below in web config
<add key="conn" value="server=abc\sqlexpress;database=abc; User ID=sa; Password=abc />

I have a web page in that I have 4 textboxes.
1 for server name,
2 for database name,
3 for User ID
4 for Password

and I have to do it at runtime.
Please let me know how to do it?

Thanking You
Mohd. Wasif
Posted
Updated 7-Mar-11 20:07pm
v2

How To Modify Web.Config At Run Time[^]

Thanks to Google...got this as 1st result.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900