<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Parts and Personalization</title><link>http://forums.asp.net/145.aspx</link><description>Discussions of the new ASP.NET 2.0 portal framework.  &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=167&amp;c=30" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Multiple Webparts on shared profile</title><link>http://forums.asp.net/thread/594401.aspx</link><pubDate>Fri, 04 Jun 2004 17:41:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:594401</guid><dc:creator>mharder</dc:creator><author>mharder</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/594401.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=145&amp;PostID=594401</wfw:commentRss><description>All WebParts are parented to the WebPartManager, and all WebParts are required to have an ID.
&lt;br /&gt;

&lt;br /&gt;
For a static WebPart (a WebPart in the ZoneTemplate of a WebPartZone), you must specify the ID in the persistence format, so the UniqueID of the WebPart is the ID of the WebPartManager, plus the ID of the WebPart itself.
&lt;br /&gt;

&lt;br /&gt;
When you add a dynamic WebPart, we generate a random ID for the WebPart.  However, this ID will stay the same as long as the WebPart is on the page.  We need the ID to stay constant, since the WebPart ID is used as the key for storing Personalization data.</description></item><item><title>Re: Multiple Webparts on shared profile</title><link>http://forums.asp.net/thread/589683.aspx</link><pubDate>Sun, 30 May 2004 23:02:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:589683</guid><dc:creator>Fredrik N</dc:creator><author>Fredrik N</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/589683.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=145&amp;PostID=589683</wfw:commentRss><description>Basically yes, but you can't if you add a WebPart dynamically, for example, if you create a WebPart that inherits the WebPart class, the Unique ID will be changed every time for the WebPart if you add it dynamically to a Zone in your server code. But if you add the WebPart to the WebPartZone in the ASP.Net page (Source view) it will always have the same Unique ID if you don't change the WebPartManger ID or the WebParts ID in the future. If you add a server control or a user control to a WebPartZone (controils that doesn’t inherit the WebPart class), the WebPartZone control will create a GenericWebpart that will have the same UniqueID, as long as the ID of the control is the same.</description></item><item><title>Multiple Webparts on shared profile</title><link>http://forums.asp.net/thread/589638.aspx</link><pubDate>Sun, 30 May 2004 20:26:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:589638</guid><dc:creator>dcanevet</dc:creator><author>dcanevet</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/589638.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=145&amp;PostID=589638</wfw:commentRss><description>Hi,
&lt;br /&gt;

&lt;br /&gt;
I have a webform having multiple WebPartZones. I designed a custom personalizable webpart that I put this webpart many times in my page. This configuration is stored in the shared profile.
&lt;br /&gt;
Can I be sure each instance of my custom webpart will always have the same Unique ID? (independently of other controls on my page, of other webparts in my zone, and independently of the logged-in profile!)
&lt;br /&gt;

&lt;br /&gt;
Regards,
&lt;br /&gt;
Denis
&lt;br /&gt;</description></item></channel></rss>