October 2010
Intermediate to advanced
1920 pages
73h 55m
English
Instead of defining a list of Profile properties in the web configuration file, you can define Profile properties in a separate class. For example, the class in Listing 28.26 contains two properties named FirstName and LastName.
Listing 28.26. App_Code\SiteProfile.cs

The class in Listing 28.26 inherits from the BaseProfile class.
After you declare a class, you can use it to define a profile by inheriting the Profile object from the class in the web configuration file. The web configuration file in Listing 28.27 uses the inherits attribute to inherit the Profile from the SiteProfile class.
Listing 28.27. ...