asp.netweb-configbrowsercaps

browserCaps in an External Config File


The BrowserCaps setting is rather quite long. Is there a way to factor it into an external config file.

does anyone know the markup?


Solution

    1. Create a new web.config file in your project and call it browserCaps.config

    2. Paste the XML of the latest browserCaps (http://owenbrady.net/browsercaps/CodeProject.xml) into this new file.

    3. In the existing web.config file of your project, add the following key within the <system.web></system.web> section:

      <browserCaps configSource="browserCaps.config"/>

    Also see this link: http://weblogs.asp.net/fmarguerie/archive/2007/04/26/using-configsource-to-split-configuration-files.aspx