<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>DotNetNuke</title>
        <link>http://geekswithblogs.net/flanakin/category/3510.aspx</link>
        <description>DotNetNuke</description>
        <language>en-US</language>
        <copyright>Michael Flanakin</copyright>
        <managingEditor>public@michaelflanakin.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Upgrading DNN 3.1 to 3.2.2</title>
            <link>http://geekswithblogs.net/flanakin/archive/2006/02/07/68522.aspx</link>
            <description>Mainly for my own benefit, I've accomplished a diff between DNN 3.1 and 3.2.2. View my blog post for details.&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=68522"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=68522" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/flanakin/aggbug/68522.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Michael Flanakin</dc:creator>
            <guid>http://geekswithblogs.net/flanakin/archive/2006/02/07/68522.aspx</guid>
            <pubDate>Tue, 07 Feb 2006 11:30:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/flanakin/comments/68522.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/flanakin/archive/2006/02/07/68522.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/flanakin/comments/commentRss/68522.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/flanakin/services/trackbacks/68522.aspx</trackback:ping>
        </item>
        <item>
            <title>First (and Second) Webcast</title>
            <link>http://geekswithblogs.net/flanakin/archive/2006/01/18/66281.aspx</link>
            <description>&lt;p&gt;
Well, I actually participated in my first webcast yesterday. &lt;a href="http://geekswithblogs.net/bscarbeau"&gt;Brian Scarbeau&lt;/a&gt; invited me to join in on his 3rd DotNetNuke webcast on custom module development to help by answer questions and filling in as needed. It went quite well and I plan on also participating in his &lt;a href="http://msevents.microsoft.com/cui/eventdetail.aspx?eventID=1032287403&amp;Culture=en-US"&gt;5th webcast on skinning&lt;/a&gt;. Should be interesting! If you're interested in DNN skinning, I suggest you check it out.
&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=66281"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=66281" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/flanakin/aggbug/66281.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Michael Flanakin</dc:creator>
            <guid>http://geekswithblogs.net/flanakin/archive/2006/01/18/66281.aspx</guid>
            <pubDate>Wed, 18 Jan 2006 14:52:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/flanakin/comments/66281.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/flanakin/archive/2006/01/18/66281.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/flanakin/comments/commentRss/66281.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/flanakin/services/trackbacks/66281.aspx</trackback:ping>
        </item>
        <item>
            <title>DotNetNuke Image Module Project</title>
            <link>http://geekswithblogs.net/flanakin/archive/2006/01/05/64976.aspx</link>
            <description>&lt;p&gt;
Well, I've been very busy over the past few months. Project after project at home and work. Well, I definitely made sure to get my all-important playtime at home, too, of course. I guess it's all a good thing, tho. I just haven't had too much time for new posts. I do have news, tho. I was just added to the DNN &lt;a href="http://dotnetnuke.com/Default.aspx?tabid=846"&gt;Image Module Project&lt;/a&gt; last week. I just got the latest code and plan on adding some of my own updates to it within the next week or so. I look forward to contributing. There aren't too many items in the &lt;a href="http://support.dotnetnuke.com/project/Project.aspx?PROJID=20"&gt;issue tracker&lt;/a&gt;, but I have seen some in the project forums. I'll try to start getting issues in and being productive soon. It should be fun.
&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=64976"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=64976" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/flanakin/aggbug/64976.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Michael Flanakin</dc:creator>
            <guid>http://geekswithblogs.net/flanakin/archive/2006/01/05/64976.aspx</guid>
            <pubDate>Thu, 05 Jan 2006 13:58:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/flanakin/comments/64976.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/flanakin/archive/2006/01/05/64976.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/flanakin/comments/commentRss/64976.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/flanakin/services/trackbacks/64976.aspx</trackback:ping>
        </item>
        <item>
            <title>DNN and the Lovely "Multiple controls with the same ID" Error</title>
            <link>http://geekswithblogs.net/flanakin/archive/2005/11/25/61188.aspx</link>
            <description>&lt;p&gt;
After having this problem several times and continually forgetting the fix, I figured I'd go ahead and make a post about it. Hopefully, it'll save someone time in the future. Let me know if you have a different fix.
&lt;/p&gt;


&lt;p&gt;&lt;p&gt;&lt;b&gt;Symptoms&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
When you browse to a DNN page after adding a new module to the page, you receive an error message that is similar to the following:
&lt;blockquote style="color:#ff0000;"&gt;
Multiple controls with the same ID 'ctr123_DD' were found. FindControl requires that controls have unique IDs.
&lt;/blockquote&gt;
&lt;/p&gt;


&lt;p&gt;&lt;b&gt;Cause&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
DNN dynamically loads modules to the page when it loads and references them using the &lt;code&gt;Control.FindControl()&lt;/code&gt; method. As the error specifies, &lt;code&gt;FindControl()&lt;/code&gt; can only be used when all IDs are unique. This usually happens when a module definition has been recently modified. DNN modules are identified using a combination of the &lt;code&gt;key&lt;/code&gt; and &lt;code&gt;type&lt;/code&gt; properties. To specify the control that should be loaded when a user browses to a page with the module, the &lt;code&gt;key&lt;/code&gt; should be blank and the &lt;code&gt;type&lt;/code&gt; should be "View". The default edit control (i.e. Add content) and the settings controls should have &lt;code&gt;key&lt;/code&gt; values of "Edit" and "Settings", respectively. All other controls need to have unique &lt;code&gt;key&lt;/code&gt; values. When non-unique &lt;code&gt;key&lt;/code&gt; values are used, DNN loads all of the controls with the same ID, which is the true culprit.
&lt;/p&gt;


&lt;p&gt;&lt;b&gt;Resolution&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
First, you'll have to know what module is causing the problem. If you are unsure of which module is causing the problem, there are three ways to figure it out:
&lt;ol&gt;
    &lt;li&gt;If a module was just added to the page before the error occurred, the module that was added is most likely the problem. (Cause you needed me to tell you that, right?)&lt;/li&gt;
    &lt;li&gt;If a module on the page that's giving you the error was just added, that module is most likely causing the error. (Another great hint!)&lt;/li&gt;
    &lt;li&gt;If neither of the previous identification methods work, the module ID is listed in the error. "ctr123_DD" refers to module 123. Take a look in the &lt;code&gt;dnn_Modules&lt;/code&gt; table and the row with that &lt;code&gt;ModuleId&lt;/code&gt; is definitely the problem.&lt;/li&gt;
&lt;/ol&gt;
&lt;/p&gt;
&lt;p&gt;
After finding the offending module, browse to the module definitions page (&lt;b&gt;Host &gt; Module Definitions&lt;/b&gt;) and check to ensure all module controls have unique &lt;code&gt;key&lt;/code&gt; values. Remember: default view is blank, default edit is "Edit", settings is "Settings", and all others can be whatever makes your little heart go pitter-patter. Once the &lt;code&gt;key&lt;/code&gt; values are corrected, you will most likely have to restart IIS. The quickest way to do this is to use &lt;b&gt;iisreset&lt;/b&gt; (&lt;b&gt;Start &amp;gt; Run&lt;/b&gt;, type &lt;b&gt;iisreset&lt;/b&gt;, click &lt;b&gt;OK&lt;/b&gt;).
&lt;/p&gt;


&lt;p&gt;&lt;b&gt;More Information&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
&lt;ul&gt;
    &lt;li&gt;Applies to:  DotNetNuke 1.0 - 3.1 (I don't think it's been fixed in newer releases, yet; but I haven't confirmed anything newer than 3.1)&lt;/li&gt;
    &lt;li&gt;There is another error that does not specify the module ID, "Multiple controls with the same ID 'ctr' were found." This fix does not apply to those. If/when I run into that one again, I'll try to post a fix on that, too.
        &lt;div style="font-style:italic;"&gt;
            I may have found the cause of the 'ctr' error. It seems that this is caused with malformed HTML within the ASCX and/or mis-matched assembly (I didn't notice there was a build error because VS was saying it built successfully, for some reason.) This happened right after editing a module control, so I just opened the ASCX file in the designer and solved the problem pretty easily. I'm pretty sure this also happened when I wasn't customizing a control, but I can't really remember. That's all I really have right now. Hope it helps someone.
        &lt;/div&gt;
    &lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61188"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61188" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/flanakin/aggbug/61188.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Michael Flanakin</dc:creator>
            <guid>http://geekswithblogs.net/flanakin/archive/2005/11/25/61188.aspx</guid>
            <pubDate>Fri, 25 Nov 2005 15:58:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/flanakin/comments/61188.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/flanakin/archive/2005/11/25/61188.aspx#feedback</comments>
            <slash:comments>15</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/flanakin/comments/commentRss/61188.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/flanakin/services/trackbacks/61188.aspx</trackback:ping>
        </item>
    </channel>
</rss>