Duration: 16 minutes
Summary: In this video, we continue our discussion on maintaining state by talking about profiles. In addition to cookies and sessions, we can use a profile to store user information. We set the profile and its properties in the web.config. The profile is strongly typed (we can give the properties types – int…). We can also add groups to the profile to organize user information.
In our case, we will create couple of pages one of them to set and read the profile information and the other is imply to read it. We will notice that once set, we can exit the browser, come back to the page and the profile information is still there. I will show you that the profile information is stored in the database. Profiles do not work for anonymous users by default. So we will see how we can fix that.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, anonymousIdentification, Profile, Properties, SelectedValue, aspnetdb.mdf.