Thursday, 17 January 2008

Getting Started with Profiles In ASP.Net 2

Profiles In ASP.Net 2 uses the same provider-based structure used by ASP.NET membership and role management amongst other features. ASP.NET includes a profile provider that stores data using Microsoft SQL Server. The default ASP.NET machine.config contains a default SqlProfileProvider instance named AspNetSqlProfileProvider that connects to SQL Server on the local machine. By default, the ASP.NET profile feature uses this provider. You can alternativly specify another in the web app's web.config (step 3). The simple steps below should get you started using Profiles in your .Net 2 web apps:

  1. Create the database using the ASP.Net Profile Providers MSDN article.
  2. Create your profile section in your web app's web.config file:
  3. Specify your custom SQL database if not using the default from the machine.config but updating your web.config:
  4. Start using your Profiles for authenticated users:

Profiles in .Net generally have alot more to them then what I've detailed above, the links below should help you get started: