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.0Using Key property for controls within a ModuleUsing Key property for controls within a Module
Previous
 
Next
New Post
12/30/2008 12:48 PM
 

Hi

I've created a module which makes use of the Key property of controls within a module.  I've used this to navigate to different controls for both the public accessible site and the admin pages.

I've added the module to a page which uses a skin with a few other panels, the default control (i.e. no key property value set) displays fine and all other panels are there and have their appropriate modules within them.  The url for this page is (http://localhost/style/TheSTYLIST/tabid/139/Default.aspx)

However when navigate to another control within the module (url: http://localhost/style/TheSTYLIST/tabid/139/mid/641/TopicId/2/Default.aspx) I lose all the other panels.

I've used the NavigateUrl(TabId, ControlKey, AdditionalParams) to create the links from control to control i.e.

DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "", "mid=" + ModuleId.ToString() + "&TopicId=" + topic.TopicId.ToString());

DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "PostingDetailPage", "mid=" + ModuleId.ToString() + "&TopicId=" + TopicId.ToString() + "&PostId=" + post.PostId.ToString())

(im using C#)

Please help, I've been pulling my hair out trying to figure out what I am doing wrong.

 
New Post
12/30/2008 1:41 PM
 

When you add the "mid" DNN will use tha admin skin and just display the one module control, much like the login control.  If you want to keep all the regular panels and such visable, you'll have to either use panels of dynamically load the controls yourself.


Eric Shafer
Houston Web Designer
Click and Create

281-206-2631
 
New Post
12/30/2008 1:57 PM
 

Hi Eric

Thanks for your quick response.  If I remove "mid" the page doesn't contain anything except the module title?

I do need to keep the other panels on the page visible and also need the module to open up with the correct Control.

How can I dynamically load the controls myself?  With this do you mean load the correct module control?

Really appreciate your help.

Tej

 
New Post
12/30/2008 2:45 PM
 

Essentially, you will ignore the DNN Controls defined in the module settings and just do it mannually.  For example, if you have a placeholder (id = phMyHolder) on your control file, you can use:

phMyHolder.add(LoadControl(Me.ModulePath + "CONTROL_NAME.ascx"))  'Loads the control "CONTROL_NAME.ascx" from the current module's folder (i.e. \desktopmodules\MyModule\"

This would add the control to the placholder and you could decide which control based on a querystring parameter or something.  You might want to clear out the placeholder before you load a new control:

phMyHolder.clear()

 

 


Eric Shafer
Houston Web Designer
Click and Create

281-206-2631
 
New Post
12/31/2008 5:55 AM
 

Ah, I see, would loading the control also load the associated resx file, or would I have to load this dynamically some how too?

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using Key property for controls within a ModuleUsing Key property for controls within a Module


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