What is serialized in the PageSettings?

Last post 07-07-2005 6:12 AM by Jupiter_Lin. 7 replies.

Sort Posts:

  • What is serialized in the PageSettings?

    03-04-2005, 5:18 PM
    • Member
      355 point Member
    • Dr.NETjes
    • Member since 02-13-2004, 2:39 PM
    • Posts 71

    I always wondered what is serialized in the PageSettings blob (stored by the PersonalizationProviders). Is it some kind of dictonary containing WebPart properties?

    The reason I want to know, is because it would be nice to load the dynamic webparts of a page (other than the current page), add a new webpart to it, and store it back again.

    --Dion
  • Re: What is serialized in the PageSettings?

    03-05-2005, 4:20 AM
    • All-Star
      29,634 point All-Star
    • Fredrik N
    • Member since 06-22-2002, 5:03 AM
    • Sweden
    • Posts 5,334
    • TrustedFriends-MVPs
    The personalization data is saved into the PageSettings column. The data is binary serialized and contains where the WebParts is located, and its settings etc.
    /Fredrik Normén - fredrikn @ twitter

    ASPInsider

    Microsoft MVP, MCSD, MCAD, MCT

    ASPInsiders
    My Blog
  • Re: What is serialized in the PageSettings?

    03-07-2005, 3:34 AM
    • Member
      355 point Member
    • Dr.NETjes
    • Member since 02-13-2004, 2:39 PM
    • Posts 71

    I know the personalization data is saved in the PageSettings blob, but what exactly is the structure of the serialized PageSettings?

    Is it:
    a) a serialized WebPartManager (including it webparts)
    b) a collection of serialized WebParts
    c) a collection of serialized WebPart properties?
    d) ...something else?
  • Re: What is serialized in the PageSettings?

    03-07-2005, 4:22 PM
    • Contributor
      3,349 point Contributor
    • wyx2000
    • Member since 11-25-2002, 11:43 AM
    • Posts 806
    I am trying to find out how it works too, I need combine personalization data from different place. I think the logic is in the .NET source code. But It will be great if someone can introduce it here.

  • Re: What is serialized in the PageSettings?

    03-08-2005, 2:33 PM
    • Member
      355 point Member
    • Dr.NETjes
    • Member since 02-13-2004, 2:39 PM
    • Posts 71
    Have a look at this weblog entry by Teun Duynstee: http://dotnetjunkies.com/WebLog/teund/archive/2005/03/08/WebPartManager_Storage.aspx

    He explains exactly what I was looking for. As I understand he's making some kind of wrapper-object that's able to manage the webparts inside the blob.

    --Dion
  • Re: What is serialized in the PageSettings?

    03-08-2005, 8:21 PM
    • Contributor
      3,349 point Contributor
    • wyx2000
    • Member since 11-25-2002, 11:43 AM
    • Posts 806
    that is great! ,hope he can figure out the whole data structure soon.
  • Re: What is serialized in the PageSettings?

    07-07-2005, 6:07 AM
    • Member
      25 point Member
    • Jupiter_Lin
    • Member since 11-03-2003, 5:07 PM
    • Posts 5
    hi

    Does anyone try out this?
    I have downloaded TeunD's code.
    but it's always wrong at
    (        UserState = New PageState(encodedUserData, PersonalizationScope.User))

    The problem is the encodedUserData can't Deserialize by ObjectStateFormatter.

    Does anyone know about this?
     what's the encodedUserData ?

    thanks
  • Re: What is serialized in the PageSettings?

    07-07-2005, 6:12 AM
    • Member
      25 point Member
    • Jupiter_Lin
    • Member since 11-03-2003, 5:07 PM
    • Posts 5
    hi

    I have try TeunD 's Code.
    But it's wrong at "UserState = New PageState(encodedUserData, PersonalizationScope.User)"
    I think the problem is
    ObjectStateFormatter can't Deserialize encodedUserData..

    Does anyone try out this?
    What's the encodedUserData?

    thanks
Page 1 of 1 (8 items)