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.0Syncing Multiple Module Instances.Syncing Multiple Module Instances.
Previous
 
Next
New Post
11/19/2008 1:20 PM
 

I'm running DNN 4.9 and am developing in C#. I've created a module that contains a dropdown with a list of items. everything works fine until I have multiple instances of the module on the page. If I delete an item from one instance of the module the change is not reflected in the other instances of the module until I actually leave the page and return.

For each module I basically rebind the dropdown list each time my delete button is clicked. How can I trigger the bind in the other instances? Do I need to use Inter Module Communication?

I also tried rebinding the dropdown in the Page_load but that didn't work, I thought since the page was being refreshed it would be triggered for each instance on the page...

Thanks

 
New Post
11/20/2008 1:47 AM
 

Hey Ryan,

      I think Inter Module communication feature of dotnetnuke can help you,

      search for "dnn+imc" without quotes on google and will get some good tutorial.

     hope this helps


Find out code snippets, tutorials and How Tos' about dotnetnuke at lakhlaniprashant.blogspot.com Umlimited wedding planning tips, free wedding websites and more at http://www.FirstPhera.com an indian dotnetnuke portal dedicated to wedding planning!
 
New Post
11/20/2008 2:43 AM
 

Is there maybe a if(!Page.IsPostBack) before the re-binding?

 
New Post
11/21/2008 10:46 AM
 

I bind the article both within the button event handler and within a if(!page.ispostback).

In side the control:

    protected void Page_Load(object sender, EventArgs e)
    {
        lblMessage.Visible = false;

        if (!Page.IsPostBack)
        {
            if (DotNetNuke.Security.PortalSecurity.IsInRoles(this.ModuleConfiguration.AuthorizedEditRoles))
            {
                pnlAdmin.Visible = true;
            }

            bindArticleDropDown();

            bindArticle();
        }

    }

    protected void bSetArticle_Click(object sender, EventArgs e)
    {
        ArticleContent.IvrnetGetArticleIDByModuleIDDataTable dtArticleID = new ArticleContent.IvrnetGetArticleIDByModuleIDDataTable();
        dtArticleID.AddIvrnetGetArticleIDByModuleIDRow(Convert.ToInt32(ddlArticleSelection.SelectedItem.Value), ModuleId);
        IvrnetGetArticleIDByModuleIDTableAdapter taArticleContent = new IvrnetGetArticleIDByModuleIDTableAdapter();
        taArticleContent.Update(dtArticleID);

        bindArticle();
    }

 

When the page reloads are each of the instances going through a page load?

 
New Post
1/6/2009 7:54 PM
 

Did you get a fix to this issue?

I have a similar issue. IMC works fine in DNN 4.5 (I have several examples where this works brilliantly) but when I try exactly the same examples with DNN 4.9 then I get the same issue as you are having and the page doesn't appear to be re-rendered even though the new values are all processed according to the value passed from the source module using IMC .

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Syncing Multiple Module Instances.Syncing Multiple Module Instances.


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