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

Summary

[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
to
profile.MyVar = 1
and
x = session("MyVar")
to
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?

Links:
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
Comment:
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-2021 ASPAlliance.com  |  Page Processed at 2021-10-27 4:41:01 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search