Configuration config = WebConfigurationManager.OpenWebConfiguration("~/rmsms");
AppSettingsSection appSection = (AppSettingsSection)config.GetSection("appSettings");
appSection.Settings["FCKeditor:UserFilesPath"].Value = "D:";
config.Save(ConfigurationSaveMode.Modified);
讀取配置文件並修改
1. 讀取某個文件夾下的Web.config中的appSection的節點,並修改保存
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
C#序列化對象轉爲爲XML格式字符串
请叫我算术嘉
2020-07-08 10:17:16
Repeater datalist
delphiorang
2020-07-08 05:31:17
ASP.NET Core 性能對比評測(ASP.NET,Python,Java,NodeJS)
nicepainkiller
2020-07-07 14:49:33
Asp.net MVC中的全局權限驗證方法及實現
wangdingbang
2020-07-07 05:15:27
從菜鳥蛻變成大神的幾款編程工具
11111111221f
2020-07-06 14:46:40
asp.net序列化json三種方式 jquery ajax json
pt5320
2020-07-05 23:59:59
HtmlBox富文本編輯器的使用
原創
2021-01-30 09:23:50
快速打造一個在線編輯器
wzbob
2020-07-07 14:43:50
ckeditor 參數
這一段時間把自己網站編輯器由fckeditor升級成了ckeditor,頓時感覺煥然一新。 下面把我的經驗分享一下: 總的來說,ckeditor的使用比fckeditor一樣簡單,不需要很複
jack_liu4Ye
2020-07-07 01:54:59
drupal6中使用drupal_html_to_text方法過濾替換html超文本代碼
JerryYangPHP
2020-07-05 10:24:27
B/S開發中,用得比較多的在線編輯器
B/S開發中,用得比較多的在線編輯器:FreeTextBox:http://www.freetextbox.com/eWebEditor:http:/
duxianghe
2020-07-05 06:47:35
爲FckEditor增加插件,添加自定義的功能按鈕ToolBarButton
goody9807
2020-07-05 02:39:11
官方的fckEditor.php源代碼
goody9807
2020-07-05 02:39:11
a bug about opencms fckeditor
iteye_7803
2020-07-04 20:53:29