Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
| 1. | Both authentication and profile services are part of the ASP.NET Ajax Extensions Library. These are available as classes named Sys.Services.AuthenticationService and Sys.Services.ProfileService in the ASP.NET Ajax Extensions Library. |
| 2. | The ASP.NET profile object can be used to store profile information for both authenticated and anonymous users. You can use it to store a user’s profile information for subsequent visits to the web application. |
| 3. | To enable the profile service for your Ajax-enabled ASP.NET application, specify the following in the application’s web.config file:
<system.web.extensions>
<scripting>
<webServices
<profileService enabled="true" />
</webServices
</scripting>
</system.web.extensions> |
| 4. | You can also use groups to group your profile information. The code snippet that follows illustrates how this can be achieved:
Code View:
Scroll
/
Show All <profile enabled="true">
<add name=" Backgroundcolor" type="System.String"
defaultValue="white" />
<add name=" Foregroundcolor" type="System.String"
defaultValue="blue" />
<properties>
<group name="Address">
<add name="Address1" type="string"/>
<add name="Address2" type="string"/>
<add name="City" type="string"/>
<add name="State" type="string"/>
<add name="PinCode" type="string"/>
<add name="Country" type="string"/>
</group>
<group name="Contact">
<add name="Name" type="string"/>
<add name="Address" type="string"/>
<add name="Phone" type="string"/>
<add name="Mobile" type="string"/>
</group>
</properties>
</profile>
|