System.Web.Profile.ProfileModule.Personalize Event

Occurs before the user profile is created.


public event ProfileEventHandler Personalize


The ProfileModule.Personalize event is raised during the System.Web.HttpApplication.AcquireRequestState event. You can access the ProfileModule.Personalize event of the System.Web.Profile.ProfileModule class in the Global.asax file for your ASP.NET application using the Profile_Personalize global event as shown in the example for this topic.

You can use the ProfileModule.Personalize event to specify a custom user profile. If the ProfileEventArgs.Profile property value specified for the System.Web.Profile.ProfileEventHandler event handler for the ProfileModule.Personalize event is set to a value that is not null when the ProfileModule.Personalize event ends, then the System.Web.Profile.ProfileModule will use the specified value of the ProfileEventArgs.Profile property as the value of the System.Web.HttpContext.Profile property of the current System.Web.HttpContext.


Namespace: System.Web.Profile
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0