Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.Services ProfileService properties Field

Contains the loaded profile data.

Syntax

Sys.Services.ProfileService.properties.FieldName; 

Remarks

You can access the loaded profile data directly from the properties field.

note

An element in the properties field can be a property group of type ProfileGroup. If it is, the related properties appear as sub-properties. For more information, see ProfileGroup Class.

Example

The following example shows how to use the properties field to access the currently authenticated user's profile data. This code is part of a complete example found in the Sys.Services.ProfileService class overview.

javascript

	Sys.Services.ProfileService.properties.Backgroundcolor = 
	    GetElementById("bgcolor").value;
	
	Sys.Services.ProfileService.properties.Foregroundcolor =
	    GetElementById("fgcolor").value;