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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNNMenu and MasterpagesDNNMenu and Masterpages
Previous
 
Next
New Post
5/3/2007 2:41 PM
 

 

 

Platform: VS.NET2005+VB.NET, WIN2003 ENT+IIS6

I have a DNNMenu on a usercontrol, if i place the usercontrol on an aspx page it works fine. if i place the usercontrol on a content aspx page which is linked to a master page the menu does not render. And the page throws a script error: this.rootNode is Null or Not an Objec. Is there a fix for this behavior, dnn is a nice to have but i need to use the Masterpages as the building blocks of my site.

 

 
New Post
5/3/2007 3:43 PM
 

I'm going to have to assume that the DNNMenu requires some of the DotNetNuke core code to exist, and by putting a user control on an ASPX page, outside of DotNetNuke, you're going to be lacking that required information.

Unless of course by "masterpage" you mean DotNetNuke skin?


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
5/4/2007 12:04 PM
 

 

Some clarifications.

DNNMenu does require references to Dnn.WebControls.dll, dnn.WebUtility.dll and  the dnn.*.js script lib to function. All these references exist in my project and the menu within the UserControl function correctly depending where I use it within the project.
 The user control encapsulates all that is required to generate the DNNMenu, so it's perplexing why when I'm dropping the usercontrol on various content pages in my project it never works on pages linked to vanilla .net Masterpages or directly on the MasterMage. If I unlinked the content pages from the master it functions correctly. The vanilla .net Masterpages and aspx pages to which I'm placing the UserControl all exists in the same folder within the project. 

 

 

 
New Post
5/4/2007 1:56 PM
 

More info.

The DNNMenu menu items are configured from an xml config file. I tried a test using the DNN webcontrol sample project from this site, i added a new test.aspx page and drop on the existing control Navigation.ascx.
I ran the project in vs.net 2005with test.aspx as my start page and the DNNMenu contained in  Navigation.ascx. worked perfectly.
I then created a new .net  test.Master and link the test.aspx to it, as expected the Menu did not show up and IE threw a script error. I step through the config script dnn.xml.js and discover the config xml data was missing from the dom construct of the menu when the menu runs on a master page.  The xml config data is loaded on the load event of the Navigatio.ascx ..ie:
.Me.NavMenu.LoadXml(oXML.OuterXml)...

some how the xml info is lost when the content aspx page is combined with the master page.  This look less to be a case of user error on my part and more a compatability issue with dnnMenu and .net Masterpages.

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNNMenu and MasterpagesDNNMenu and Masterpages


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