保存web.config文件(转载)
生活随笔
收集整理的這篇文章主要介紹了
保存web.config文件(转载)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
string appSetting = txtAppSetting.Text;//appSetting子節(jié)點值
string connectionString = txtConnectionString.Text;//連接字符串
string key = txtKey.Text;//appSetting子節(jié)點Key
string connectionName = txtConnectionName.Text;//連接Name
ConfigurationOperator op = new ConfigurationOperator();?
op.SetAppSetting(key, appSetting);?
op.SetConnectionString(connectionName, connectionString);?
op.Save();
本篇文章來源于:開發(fā)學(xué)院 http://edu.codepub.com??
原文鏈接:http://edu.codepub.com/2010/0803/24812_8.php
轉(zhuǎn)載于:https://www.cnblogs.com/zhwl/archive/2011/04/05/2005937.html
總結(jié)
以上是生活随笔為你收集整理的保存web.config文件(转载)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [C#1] 10-事件
- 下一篇: 类WebOS(添加了主界面,及相关功能代