Understanding the Profile Object of ASP.NET Version 2.0 (Beta 1)
page 4 of 4
by Terry Voss
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 20829/ 67


[Download Sample Project]

So the ASP.NET Configuration interface allows you to design user properties, and this information goes into the web.config file. The Profile object then knows what is defined and where to go to get it in your chosen provider or data store.

One application of the Profile object is to only use session for authentication and authorization purposes and do data storage for a user in the Profile object. So change each:

session("MyVar") = 1
profile.MyVar = 1
x = session("MyVar")
x = profile.MyVar

I think the real potential for website statefulness must be measured by using a number of complex classes like a ShoppingCart and stress testing it with Microsoft Application Center, but that must wait until the RTM (Release to Manufacture) version is available. Could your website soon out-personalize Amazon?

New Personalization Features in ASP.NET Whidbey
Managing User Profiles in ASP.NET 2.0
More Whidbey Changes: Personalization/Profile

Books:  (I own the following books below and therefore can attest that their quality is good on Version 2.0 new features)
Note: The Esposito book has more detail on Profile.

1. A First Look at ASP.NET v 2.0
by Alex Homer, et al (Paperback)
Avg. Customer Rating: 4.5 out of 5 stars
2. Introducing ASP.NET 2.0
by Dino Esposito; (Paperback)
Avg. Customer Rating: 3.0 out of 5 stars


View Entire Article

User Comments

Title: The shopping cart works great, but...   
Name: scott baldridge
Date: 2006-02-21 10:58:14 PM
I have a profile.shoppingCart working but am stuck with finding information on how to get the items from the cart to a SQL database. I can find no documentation or examples. Does anyone know how?
It's all easy to put the data into the cart but is useless if you can't get it to a database..

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-29 11:48:15 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search