When you are working with managed code applications, you may need to store information used by an application as key/value pairs in the application's Web.config file. Storing application settings in this way ensures that the stored values can be accessed from anywhere within the application. If you store application settings at the server or site level, multiple applications could access and use the same settings. With this in mind, you can view and work with key/value pairs for applications by completing the following steps:
1. In IIS Manager, navigate to the level of the configuration hierarchy you want to manage.
2. Access the Application Settings page by double-clicking the Application Settings feature.
3. In the main pane, you'll see a list of the currently defined key/value pairs. Be sure to note whether the entry type is listed as local or inherited. Local entries are configured at the level you are working with. Inherited entries are configured at a higher level of the configuration hierarchy.
4. Use the following techniques to work with application settings:
• Add a setting Click Add. In the Add Application Setting dialog box, type the name and value for the application setting, and then click OK.
• Edit a setting Click the setting you want to modify, and then click Edit. In the Edit Application Setting dialog box, type the desired name and value for the application setting, and then click OK.
• Remove a setting Click the setting you want to remove, and then click Remove. When prompted to confirm the action, click Yes.
No comments:
Post a Comment