This documentation is archived and is not being maintained.
AnonymousIdentificationModule.Enabled Property
Visual Studio 2008
Gets a value indicating whether anonymous identification is enabled for the ASP.NET application.
Assembly: System.Web (in System.Web.dll)
'Declaration Public Shared ReadOnly Property Enabled As Boolean 'Usage Dim value As Boolean value = AnonymousIdentificationModule.Enabled
Property Value
Type: System.Booleantrue if anonymous identification is enabled for the ASP.NET application; otherwise, false. The default is false.
The following code example shows a Web.config file for an application that enables anonymous identification.
<configuration>
<system.web>
<authentication mode="Forms" >
<forms loginUrl="login.aspx" name=".ASPXFORMSAUTH" />
</authentication>
<anonymousIdentification enabled="true" />
<profile defaultProvider="AspNetSqlProvider">
<properties>
<add name="ZipCode" allowAnonymous="true" />
<add name="CityAndState" allowAnonymous="true" />
<add name="StockSymbols" type="System.Collections.ArrayList"
allowAnonymous="true" />
</properties>
</profile>
</system.web>
</configuration>
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: