PC Review


Reply
Thread Tools Rate Thread

Declarative Web Part Personalization

 
 
MULTISY
Guest
Posts: n/a
 
      29th Jan 2007
Here is the situation, the WebPartManager exists on the masterpage, and the
web part is being declared in the contentplaceholder on the aspx page like
so:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<myWP:nowNeedPersonalization runat="server" ID="help" />
</asp:Content>

Now this web part need additional properties added and persisted for the
shared view of users, but when using SetPersonalizationDirty() fails since
this web part is not contained within the WebPartManger (is equal to null).
Is there a way to bind a declarative web part to the WebPartManager from
within the aspx page?

Help...


 
Reply With Quote
 
 
 
 
MULTISY
Guest
Posts: n/a
 
      29th Jan 2007
Happy ending:

To get web part into the WebPartManager requires these additions, now custom
properties will persist.

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<asp:WebPartZone ID="WebPartZone1" runat="server">
<ZoneTemplate>
<myWP:nowNeedPersonalization runat="server" ID="help" />
</ZoneTemplate>
</asp:WebPartZone>
</asp:Content>


"MULTISY" <(E-Mail Removed)> wrote in message
news:ek0%23VC%(E-Mail Removed)...
> Here is the situation, the WebPartManager exists on the masterpage, and
> the web part is being declared in the contentplaceholder on the aspx page
> like so:
> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
> runat="server">
> <myWP:nowNeedPersonalization runat="server" ID="help" />
> </asp:Content>
>
> Now this web part need additional properties added and persisted for the
> shared view of users, but when using SetPersonalizationDirty() fails since
> this web part is not contained within the WebPartManger (is equal to
> null). Is there a way to bind a declarative web part to the WebPartManager
> from within the aspx page?
>
> Help...
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with web part personalization Holysmoke Microsoft ASP .NET 0 15th Sep 2009 05:20 PM
RE: Web Part Personalization Steven Cheng[MSFT] Microsoft ASP .NET 0 6th Dec 2006 04:06 AM
Personalization: How do I load another user's personalization settings instead of the current user? Electrified Research Microsoft ASP .NET 3 23rd Sep 2006 06:22 PM
Enabling Web Part personalization without user registration Anonieko Microsoft ASP .NET 0 8th Feb 2006 10:34 AM
Accessing Web Part personalization info from a different Web page Michael Microsoft ASP .NET 0 9th Dec 2005 04:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 PM.