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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDisplaying an ascx control within a module in a different paneDisplaying an ascx control within a module in a different pane
Previous
 
Next
New Post
4/15/2010 6:00 AM
 

I have recently developed two custom modules for publishing local news on my dnn website. The first module is deployed on the news page of my website which enables the site administrator to create and edit news items (this module consists of three ascx controls and works fine). However, the trouble is with second module which is placed on the right pane and shows a list recent news items. I want the details of  the news item selected by the user to display within the content pane. Any help on how to achieve this will be very much appreciated.

 
New Post
4/15/2010 1:02 PM
 

You can have two module definitions one for the content the other for the list.  You can then either use InterModule Communication (IMC) to update the content, or use querystring items to update the page.

I personally like the QueryString route as it is the most accessiable for all browsers/visitor types.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/15/2010 8:51 PM
 

I've run into the same problem and have a partial work-a-round.  The idea of updating modules with a request.redirect isn't a viable option for our application, so I placed a hidden button on the module I want to update (your content pane) like this:

<asp:Button ID="btnFire" runat="server" Text="btnFire" style="visibility:hidden" />

Then I added script to the same module like this:
 
   <script type="text/javascript">
       function mybtnFireClick() {
           $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequestWithTarget('<%= btnFire.UniqueID %>', '');
       }
   </script>
 
Finally on the module that needs to refresh the second module I added this code for a button in that module:
 
btnUpdateModule.Attributes.Add("onclick", "mybtnFireClick();")
 
You can use viewstate or session to set which new item is selected and then displayed.  Let me know if you need more detail to implement.

 
New Post
4/16/2010 6:52 AM
 

Hello Mitchel,

Many thanks for the quick response. I've implemented the IMC option which worked fine for the two modules on the same page. However, I'm considering a different implementation where the news detail module will be placed on a different page. When the site visitor selects a news item to view on the side bar pane, I want the him to see the page with the news details module.

Hello Paul,

Thank you for your suggestion. Is it possible to use it for communication between modules on different pages? If so can you help me with the implentation codes as you did in your last reply.

Regards,

Ebirien.

 
New Post
4/18/2010 3:56 PM
 
Please I'm still waiting to receive help on communicating between modules on different pages. Many thanks in advance.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDisplaying an ascx control within a module in a different paneDisplaying an ascx control within a module in a different 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