1. Visit http://www.microsoft.com/downloads/details.aspx?FamilyID=4c557c63-708f-4280-8f0c-637481c31718&DisplayLang=en, download the Enterprise Library.
  2. Install it.
  3. Launch Enterprise Library Configuration.
  4. Click File->Open Application, choose the web.config which you want to modify.
  5. Right click the Application Settings, choose New->Setting.
  6. Remain Name as Setting, and input the value you want to use, and then click Save in the menu.

    Open the web.config, you will find that the following key is added in the appsetting section:

    <appSettings>

    <add key="Setting" value="test value" />

    </appSettings>

    You can modify the Name and Value in Enterprise Library Configuration, the key and value property in web.config will be modified correspondingly.

Repeat step 5 and 6 if you want to add more keys in web.config.

posted on 2008-01-21 15:46  今夜太冷  阅读(306)  评论(0)    收藏  举报