Fourth MSDN Article Published! “Adding Personalization with Profiles to the ObjectDataSource”
Monday 4 September 2006 @ 11:55 am

Microsoft just published my fourth article. This one is titled: "Microsoft ASP.NET 2.0 Member/Role Management with IIS, Part 4: Adding Personalization with Profiles to the ObjectDataSource".

You can find it on MSDN here, or on my blog here.

Here is the introduction.

Introduction

This article extends one of the web pages developed in Part II of this series using Microsoft’s Profile feature. In Part II, the Membership API was encapsulated in an ObjectDataSource. This allowed the developer to have a drop in web page for the web site administrator to use in an web site project for editing membership. This tools allowed for similar capability to the the web site manager tool included in Visual Studio 2005 (VS2005). It is necessary because using that web configuration tool included with VS2005 is problematic and should not be used in a production web site.

This article explains how the encapsulation of Membership can be extended to include Profile (personalization) information for users. The designers of Membership included a very basic set of attributes to associate with Members (logged in users). The Profile API provided by Microsoft allows for additional information to be attached to each member. Typically, this information would include things like: first name, last name, home address, favorite color schemes or anything else the developer may want to associate with a logged in member. By personalizing the site to the member logged in, it likely increases the chance the user will return and be more comfortable while visiting.





6 Responses to “Fourth MSDN Article Published! “Adding Personalization with Profiles to the ObjectDataSource””

  1. Ecreo webbureau Windows Vista Internet Explorer 7.0 Says:

    Now I have downloaded all of your 4 articles/downloads, about your membership extension, and I just can’t get my hands down…

    THANKS!

  2. Casper Stendal Windows Vista Internet Explorer 7.0 Says:

    Hi Peter,

    Isn’t the RoleDataObjectForMP exactly the same as the “old” RoleDataObject, and RoleDataForMP the same as RoleData..?

    So why rename these two…?

    The reason I’m asking, is because I better liked the old version with all your great comments/documentation - which I’m missing in this (profile) version.

    Thanks,
    Casper Stendal
    Webbureau: http://www.ecreo.dk

  3. shan Windows XP Opera 9.10 Says:

    How can I search by username or email if I use your membership provider?

    Thanks
    Shan

  4. Andy Windows XP Internet Explorer 6.0 Says:

    I didn’t see any documentation on modifying the MembershipUserODS to add the profile information. I was able to find your c# code that has the changes, but I don’t recall finding anything in the article explaining this. In addition, the VB version of the modified MembershipUserODS would be excellent!

  5. Andy Windows XP Internet Explorer 6.0 Says:

    I apologize. In my earlier comment I indicated MembershipUserODS and this was in error. I was referring to MembershipUserWrapperForMP.

  6. Andy Windows XP Internet Explorer 6.0 Says:

    Question - In the RoleDataObject.cs I noticed that there is no update statement for changing a user’s roles; toggling roles on and off. Does it not make sense to add that here?

Leave a Reply