Creating Complex Profile Properties
To this point, we used the Profile
properties to represent simple types such as strings and integers. You can use Profile
properties to represent more complex types such as a custom ShoppingCart
class.
For example, the class in Listing 28.28 represents a simple shopping cart.
Listing 28.28. App_Code\ShoppingCart.cs
The file in Listing 28.28 actually contains two classes: ShoppingCart
and CartItem
. The ShoppingCart
class exposes a collection of CartItem
objects.
The web configuration file in Listing 28.29 defines ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.