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...DNN Platform (o...DNN Platform (o...Reload single module from pageReload single module from page
Previous
 
Next
New Post
2/19/2013 1:20 AM
 

Hi Community!

Here is what I am trying to achieve:

I have got a page with two modules on it. 

  1. Product-Module: this module reads all current products from the db and prints them in a nice form on the website. In each product part is a button which allows the user to add that specific product to his wishlist. What is happening is just an insert into the db in the wishlist table.
  2. Wishlist-Module: This module shows all the products that are in the users wishlist.

The problem is now when I do a postback and update the database on the Button.Click event how do I reload the second module so that all products are in there without reloading the whole page (that's what I am doing at the moment but that is not the smartest solution I would guess)?

I would like to get an object for the second module by the tabid for example which would have a method like Refresh() or Render() or something like that. Does such a thing exists?

I am running on DNN 6.2.

Thanks for your help,

Nils

 
New Post
2/19/2013 3:03 PM
 
Check out DotNetNuke.Entities.Modules.Communications.IModuleCommunicator and DotNetNuke.Entities.Modules.Communications.IModuleListener

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/19/2013 3:48 PM
 
Use Ajax. I do something similar to avoid an entire page reload.

Mark
 
New Post
2/20/2013 1:10 AM
 

Hello,

 Thank you for your help so far.

 I implemented the interfaces but it only works if I raise the event within the Page_Load of the sender module. What I actually want to do is to raise the event on the click of a user.

Is there anything that could prevent the event from raising on a click event of a button?

Thanks again,

Nils

 
New Post
2/20/2013 3:49 PM
 
My app raises it in a click event.

I think it should just work.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Reload single module from pageReload single module from page


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