Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Programmably Access Portal Pane?Programmably Access Portal Pane?
Previous
 
Next
New Post
4/17/2007 10:16 AM
 

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 2:22 PM
 

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
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Programmably Access Portal Pane?Programmably Access Portal Pane?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out