<?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>Custom Modules</title><link>http://www.dotnetnuke.com/tabid/795/Default.aspx</link><description>Developing custom modules for DotNetNuke.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Retrieving File from Current Portal Skin Directory</title><link>http://forums.asp.net/thread/1347378.aspx</link><pubDate>Thu, 20 Jul 2006 22:54:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1347378</guid><dc:creator>rambear</dc:creator><author>rambear</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1347378.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1347378</wfw:commentRss><description>&lt;p&gt;&lt;font face=Arial&gt;&lt;font size=2&gt;Well, I figured out how to use&lt;/font&gt; &lt;/font&gt;&lt;font color=#008000&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;DotNetNuke.Common.GetPortalSettings.ActiveTab.SkinPath&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial color=#000000 size=2&gt;to locate the current directory.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial color=#000000 size=2&gt;What we're trying to do is pull in an .ascx from the portal's&amp;nbsp;skin&amp;nbsp;directory that has a custom layout.&amp;nbsp; However, the controls on the differnt pages will always be the same (with the same ID) from portal to portal, it's just the layout will be different.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial color=#000000 size=2&gt;Is there a way to grab that file and stuff it into the 'View...ascx' file used by the custom module?&amp;nbsp; Maybe use a placeholder on the View page that we then cram the .ascx from the protal's skin directory into?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial color=#000000 size=2&gt;Can you stick a user control into another user control using the Page_Load event to determine where directory we're going to pull from?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial color=#000000 size=2&gt;Is there a better way to do this?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial color=#000000 size=2&gt;Thanks for any help.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Retrieving File from Current Portal Skin Directory</title><link>http://forums.asp.net/thread/1343562.aspx</link><pubDate>Mon, 17 Jul 2006 18:46:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1343562</guid><dc:creator>rambear</dc:creator><author>rambear</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1343562.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1343562</wfw:commentRss><description>We're trying to grab an .ascx from the current portal's/current skin directory so we can insert it into a custom module's view page.&amp;nbsp; Can anyone explain how to do this?&lt;br /&gt;</description></item></channel></rss>