Register   Login
     
  Latest Posts  
RE: Ventrian systems .... one men show
by jcochran on 11/19/2008 3:44 PM
One of the "Must Have" DNN module sets
by jcochran on 11/19/2008 3:41 PM
One latest for a few categories
by aviavia on 11/19/2008 3:34 PM
Reproducible Bug
by jcochran on 11/19/2008 3:21 PM
RE: Is the Archive module an archive or an index?
by Betacam on 11/19/2008 2:51 PM
RE: Ratings button appears to anonymous users
by WillJean on 11/19/2008 2:46 PM
RE: Is the Archive module an archive or an index?
by Betacam on 11/19/2008 2:42 PM
RE: Archive Issue
by ech01 on 11/19/2008 2:40 PM
RE: ENH: Stylesheet Option
by usheen on 11/19/2008 2:03 PM
How to Filter News Articles Feed and Connect it to a Campaign Under Custom Newsletter Module
by greenflash on 11/19/2008 2:02 PM
  Forums  
Subject: Modules were lost
Prev Next
You are not authorized to post a reply.

Author Messages
misspolo misspoloUser is Offline
Registered Users

Posts:10

5/31/2005 9:43 PM  

Hi,everyone:
I'm trying to develop a DNN module,But I encountered a serious problem,I 'm not sure whether it is a DNN feature or it is a configration error,I wish you can help me.

My module contains servial user controls,so when I use the "NavigateURL" method provided by DNN Core to navigate to a user control,It will automatically redirect to a new url which contain a "ctl" parameter,But once this parameter is passed,the other modules in the page will be lost,Only the user control in my module indicated by the "ctl" parameter will by visiable,it is quite a ugly UI.

On Smcculloch's this great site,it seems that this problem doesn't exist,I don't why,Could you help me? Many thanks!

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12427


5/31/2005 11:55 PM  
Great Question!
 
You may notice that in this forums module it does a similar thing.
 
Navigation within DotNetNuke is designed for only a limited number of controls, specifically 1 view, and multiple admin controls. That's why when you navigate to anything other then the view control it loads in a page by itself.
 
To overcome this problem you need to create a parent module that dynamically loads child controls and does not rely on the core navigation. Some good examples of this are the Forums from the Core Sub-Project, my News Articles module, the forums from www.activemodules.com
 
If you download these projects, or purchase as the case maybe, you will be able to see how it is done.

Scott McCulloch
Site Administrator
misspolo misspoloUser is Offline
Registered Users

Posts:10

6/01/2005 1:22 AM  


In my another project,I always used this solution.It doesn't work very well,So I want to know whether there is a better solution.
 
I created a base control,which hold every other controls,My base control will dynamicly decide which control to show and which to hide based on querystring.My base control is derived from PortalModuleBase,and other controls are derived from PortalModuleBase too,But I found that,Only my base control can get TabId and ModuleID,other controls can't get it properly.So  I modified these controls to be derived from WebControls,and pass these two parameters from my base control.

Is it a popular question?Could you tell me how do you solve this problem?Thank you.

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12427


6/01/2005 3:25 AM  
Generally, when dynamically loading a control, I passed through the ModuleConfiguration to the child control.


The real problem with loading controls in this way is that you cannot
have multiple instances on the one page, as the actions are key'ed off
the URL.


Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > Modules were lost



ActiveForums 3.7