ASP.NET v2.0: New Web.Config Options in Whidbey

There are lots of new options in the web.config file in ASP.NET v2.0.  I particularly like ability to globally define your RegisterTagPrefixes, as well as your Imports for all of your Pages.  Its also nice to see the cookieless attribute for Forms Authentication, with more options then just true or false so that different devices are handled appropriately.  Many of these others are very complicated, and they'll be discussed in articles about the specific features.  Here's the general layout:

<configuration>
  <system.web>
    <authentication mode="Forms">
      <forms defaultUrl=""
          cookieless="UseCookies|UseUri|AutoDetect|UseDeviceProfile" />
    </authentication>
    <connectionStrings />
    <featurePermissions />
    <healthMonitoring />
    <membership />
    <pages master="">
      <imports>
        <add namespace="" />
      </imports>
      <registerTagPrefixes>
        <add tagPrefix="" namespace="" />
      </registerTagPrefixes>
    </pages>
    <personalization />
    <siteCounters />
    <siteMap />
    <SMTPMail serverName="" serverPort="" from="" />
  </system.web>
</configuration>

No Comments