從外部檔案載入applicationSettings

繼上篇文章 從外部檔案載入connectionStrings 後

我想說順便把大家最常用的applicationSettings也順便一起調一下...

首先我們先新增一個test2.config,並且打開他

接著我們再打開專案原本的Web.config檔來做些修改

再來,測試一下!!

過關!!搞定!!

參考來源:stackoverflow

We all change, when you think about it, we're all different people; all through our lives, and that's okay, that's good, you've gotta keep moving, so long as you remember all the people that you used to be. I will not forget one line of this, not one day, I swear.