Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Programmably Access Portal Pane?
Previous Previous
 
Next Next
New Post 4/17/2007 8:16 AM
User is offline Nathan Truhan
27 posts
10th Ranked


Programmably Access Portal Pane? 

Hello,

Question.  I am trying to program a module that will communicate with a Pane and replace the contents of that pane with an HtmlControl of an iframe.  I have done this before, but it has been kluugy and not 100% reliable.

If I do a DotNetNuke.Common.FindControlRecursiveDown(Page, "ContentPane") , the system actually returns a reference to the radiolistcontrol in the admin menu in DNN 4.5.1, whereas in 3.7 it returned the reference to the Pane, in earlier versions, it would return a reference to a control elsewhere.  If I do a DotNetNuke.Common.FindControlRecursive(Me.Parent, "ContentPane"), it finds the container for the current pane.  Also, looking at the source html of my page, multiple controls have a clientid that contains contentpane, eventhough they are not in the contentpane, one example is I have a LeftPane that has the search control.  This returns the following for the module:

<table width="100%" border="0" cellspacing="0" cellpadding="5">
             <tr>
               <td>
        <span id="dnn_ctr414_ContentPane" width="100%" align="left"><!-- Start_Module_414 --><div id="dnn_ctr414_ModuleContent">
  
<table cellSpacing="0" cellPadding="4" summary="Search Input Table" border="0">
 <tr>
  <td nowrap><label id="dnn_ctr414_SearchInput_plSearch_label">
  <a onclick="if (__dnn_SectionMaxMin(this,  'dnn_ctr414_SearchInput_plSearch_pnlHelp')) return false;" id="dnn_ctr414_SearchInput_plSearch_cmdHelp" tabindex="-1" href=" __doPostBack('dnn$ctr414$SearchInput$plSearch$cmdHelp','')"></a>
  <span id="dnn_ctr414_SearchInput_plSearch_lblLabel"></span>
</label>
<br>
<div id="dnn_ctr414_SearchInput_plSearch_pnlHelp" class="Help" style="display:none;">
   
  <span id="dnn_ctr414_SearchInput_plSearch_lblHelp"></span>

  </div>
</td>
  <td><input name="dnn$ctr414$SearchInput$txtSearch" type="text" maxlength="200" size="35" id="dnn_ctr414_SearchInput_txtSearch" class="NormalTextBox" style="width:150px;" /></td>
  <td><input type="image" name="dnn$ctr414$SearchInput$imgGo" id="dnn_ctr414_SearchInput_imgGo" src="/DotNetNuke/images/search_go.gif" style="border-width:0px;" /></td>
 </tr>
</table>
<!-- End_Module_414 -->
 </div></span>
      </td>
             </tr>
          </table>

Note the dnn_ctr414_ContentPane, why would this be there if it is in the leftpane?  shouldn't it be more like dnn_ctr414_LeftPane?

 

So basically, after all that, I just need to determine how I can programmatically access a pane and manipulate its contents.  

Thank you,

Nathan

 

I know there are refrences to Portals, Tabs and modules that you can program against, but the only items I see in terms of Panes is just an array list of panes available, such as PortalSettings.ActiveTab.Panes  also, there is the PaneModuleCount, PaneModuleIndex, and PaneName for a ModuleConfiguration.

 
New Post 4/18/2007 12:22 PM
User is offline Nathan Truhan
27 posts
10th Ranked


Re: Programmably Access Portal Pane? 

Let me put the email in the right order and it may make more sence:

 

I am trying to program a module that will communicate with a Pane and replace the contents of that pane with an HtmlControl of an iframe.  I have done this before, but it has been kluugy and not 100% reliable.

I know there are refrences to Portals, Tabs and modules that you can program against, but the only items I see in terms of Panes is just an array list of panes available, such as PortalSettings.ActiveTab.Panes  also, there is the PaneModuleCount, PaneModuleIndex, and PaneName for a ModuleConfiguration.


If I do a DotNetNuke.Common.FindControlRecursiveDown(Page, "ContentPane") , the system actually returns a reference to the radiolistcontrol in the admin menu in DNN 4.5.1, whereas in 3.7 it returned the reference to the Pane, in earlier versions, it would return a reference to a control elsewhere.  If I do a DotNetNuke.Common.FindControlRecursive(Me.Parent, "ContentPane"), it finds the container for the current pane.  Also, looking at the source html of my page, multiple controls have a clientid that contains contentpane, eventhough they are not in the contentpane, one example is I have a LeftPane that has the search control.  This returns the following for the module:

<table width="100%" border="0" cellspacing="0" cellpadding="5">
             <tr>
               <td>
        <span id="dnn_ctr414_ContentPane" width="100%" align="left"><!-- Start_Module_414 --><div id="dnn_ctr414_ModuleContent">
 
<table cellSpacing="0" cellPadding="4" summary="Search Input Table" border="0">
 <tr>
  <td nowrap><label id="dnn_ctr414_SearchInput_plSearch_label">
  <a onclick="if (__dnn_SectionMaxMin(this,  'dnn_ctr414_SearchInput_plSearch_pnlHelp')) return false;" id="dnn_ctr414_SearchInput_plSearch_cmdHelp" tabindex="-1" href=" __doPostBack('dnn$ctr414$SearchInput$plSearch$cmdHelp','')"></a>
  <span id="dnn_ctr414_SearchInput_plSearch_lblLabel"></span>
</label>
<br>
<div id="dnn_ctr414_SearchInput_plSearch_pnlHelp" class="Help" style="display:none;">
  
  <span id="dnn_ctr414_SearchInput_plSearch_lblHelp"></span>

  </div>
</td>
  <td><input name="dnn$ctr414$SearchInput$txtSearch" type="text" maxlength="200" size="35" id="dnn_ctr414_SearchInput_txtSearch" class="NormalTextBox" style="width:150px;" /></td>
  <td><input type="image" name="dnn$ctr414$SearchInput$imgGo" id="dnn_ctr414_SearchInput_imgGo" src="/DotNetNuke/images/search_go.gif" style="border-width:0px;" /></td>
 </tr>
</table>
<!-- End_Module_414 -->
 </div></span>
      </td>
             </tr>
          </table>

Note the dnn_ctr414_ContentPane, why would this be there if it is in the leftpane?  shouldn't it be more like dnn_ctr414_LeftPane?

 

So basically, after all that, I just need to determine how I can programmatically access a pane and manipulate its contents. 

Thank you,

Nathan

 

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Programmably Access Portal Pane?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com
Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com
Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP