动态更改Web配置中的连接字符串 [英] change connection string in web config dynamically
本文介绍了动态更改Web配置中的连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在Web配置文件中具有连接字符串,如下所示:
Hi All,
i have connection string in web config file as :
<appSettings>
<add key="conn" value="server=abc;database=abc; User ID=abc; Password=abc"/>
</appSettings>
现在我想更改连接字符串值,例如
服务器,数据库,用户ID,网页中的密码是动态表示的.
Now i want to change connection string values e.g
server ,database,User ID,Password from a web page means dynamically.
Please Let me know hoe to accomplish it.
推荐答案
为什么 ^ ]?
您昨天问过这个问题,并收到了几封答复.你试过了吗?如果您有问题,请使用注释功能遵循相同的操作.
Why a repost[^]?
You asked this yesterday and was given couple of replies. Did you try? If you have issues then follow the same there using comment feature.
这篇关于动态更改Web配置中的连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文