Hello,
I work on a project where people can add personnalized content to their "MyPage". I don't use the catalogPart and I programmatically add the webpart controls to the page.
My own catalog is organized by roles so the user can only add webpart related to his roles (user can have multiple roles).
My problem is : on the user login, I synchronize roles with an external database. If a user loses one role, how can I remove webparts related to this role on his "MyPage". I need to know all webparts on his "MyPage" and remove (programmatically) theses webparts...
So :
1 - how to know all user webParts (read aspnet_personalizationPerUser)
2 - how to remove programmatically a webpart identified previously by the table aspnet_personalizationPerUser)
Thanks you very much, I'm very desperate ;-)
Iannick
P.S. Sorry for my "medium" english !