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.0Problem in displaying & navigating custom modulesProblem in displaying & navigating custom modules
Previous
 
Next
New Post
4/11/2007 11:34 PM
 

hi,

   i've created two custom modules (two usercontrols - one per each module) and i want to navigate from one usercontrol to another and also need to pass some arguments too. 

  my first usercontrol simply contains list of links which is dynamically loaded from my db and the second control is a very simle one which contains label controls only. when i click the link in first usercontrol, i would like to call the second control with the values passed from the first.

 so that  i created two modules to add my usercontrols (one module per control) and created two pages to add these two modules (one page per module).

 i followed the below mentioned  tutorials to create simple custom modules and to navigate to it.

ie) http://www.adefwebserver.com/DotNetNukeHELP/DNN_ShowMeThePages/
     http://www.adefwebserver.com/DotNetNukeHELP/NavigateURL/

  but i've faced two problems,

1) the second usercontrol module does not display properly in the corresponding page, ie) if i dont set the "Key" value in the Module Definition Page of that control, then no pblm in the display.
  but if i set the Key value, then the corresponding page doesnt display mycontrol which supposed to display. (i need to use this Key value in my NavigateUrl Function)

  i checked authorization settings and all, everthing seems to be ok. what can cause this pblm?

2) navigateurl doesnt show my second  control. i checked the url in an address bar, it seems to be ok
ie)  "http://localhost/MyDnnSite/CustomModulePage1/tabid/56/ctl/SecondUserControl/mid/382/argument1/myArgument1Value/Default.aspx

any help would be greately appreciated!  thank you very much for reading this quite long question.

 
New Post
4/12/2007 8:49 PM
 

This stuff can get a bit confusing (and complicated depending on what exactly you are doing).

The only time I don't use the "ControlKey" is for modules that are page-droppable/addable.

I've had a few issues with "MID" or ModuleID value not being the one I needed from the calling control, but I don't remeber the details on that and my crazy fix at the moment.

Perhaps post your code for NavigateURL.  Post the settings for your module-contol you are calling (and confirm it is a module control Of-The-calling-Module).  
If I am incorrect in "ControlKey" not being needed, someone smarter than me please correct me (and perhaps tell me when this would be done).

 

 
New Post
4/15/2007 11:36 PM
 

hi,
    thank you very much for your reply.  let me explain little more details.

1.  i've named my first control called "Products.ascx" which is under my desktop modules folder. 
     then i've created new module called "AllProducts" and add my Products.ascx control on that module.
     then i've created new page called "Products" and added my AllProducts module in that page. 
     after that i tested my new page.its fine.

2. i followed the same steps to create my second control called "ProductDetail.ascx" and 
    the module name is "myProductDetail" and the new page called "myProduct". 
    i tested, its just fine. But after adding ControlKey name in the "myProductDetail" module definition, my page wont display my "ProductDetail.ascx" control. if i take out that value again, it will be ok, no pblm then.

     and my idea is, when clicking on the Product's name listed on the page "Products" , open the detail page of corresponding product by passing Parameter to my "myProductDetail" module. so that i decided to set up the links using navigateUrl function on the "Products.ascx", the def will be
    
"Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "ProductKey", "mid=" & CStr(ModuleId) & "&det=" & ProductName & ")"

 
New Post
4/16/2007 12:03 AM
 

hi,
    thank you very much for your reply.  let me explain little more details.

1.  i've named my first control called "Products.ascx" which is under my desktop modules folder. 
     then i've created new module called "ProductsModule" and added my Products.ascx control on that module.
     then i've created new page called "ProductsPage" and added my "ProductsModule" module in that page. 
     after that i tested my new page.its fine.

2. i followed the same steps to create my second control called "ProductDetail.ascx" and 
    the module name is "ProductDetailModule" and Control type is "View". and added the new page called "ProductDetailPage". 
    finally i tested, its just fine. But after adding ControlKey name in the "ProductDetailModule" module definition, ProductDetailPage won't display anything .  if i take out that value, then no pblm it will be ok again.

     and my idea is, when clicking on the Product's name listed on the page "Products" , open the detail page of corresponding product by passing ProductID to my "ProductDetailModule" module. so that i decided to set up the links using navigateUrl function on the "Products.ascx", the def is,    

     "Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "ProductKey", "mid=" & CStr(ModuleId) & "&id=" & ProductID & ")" 
here "ProductKey" is the name of ControlKey.

 and it returns the following value in the Addressbar http://localhost/myDnnSite/Products/tabid/56/ctl/ProductKey/mid/382/id/TestProductName/Default.aspx
here tabid 56 is  tabid of "Products" Page and my browser takes me into the same page ie) ProductsPage with no values on it, instead of take me into ProductDetailPage.

   i hope i've explained my pblm little bit clear. and my Module Def. Settings, Page settings ,... everything are quite straight forward.
   if u want any more details, pls let me know.
 Thanks.

 
New Post
4/16/2007 8:10 AM
 

vijee wrote

   i've created two custom modules (two usercontrols - one per each module) and i want to navigate from one usercontrol to another and also need to pass some arguments too. 

Neither of the tutorials coveres navigating from one module to another. The NavigateURL tutorial is coviering navigating from one user control in a module to another control in that module.

It appears that what you want to do is simply have a hyperlink link that passes querystring parameters. Your modules will have code to detect those parameters and respond accordingly.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem in displaying & navigating custom modulesProblem in displaying & navigating custom modules


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