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.0Multiple View Controls, NavigateURL, etc.Multiple View Controls, NavigateURL, etc.
Previous
 
Next
New Post
10/9/2006 2:42 PM
 

Hello:

I recently started doing module development with DNN 4.3.5 and the Dev Kit. The setup is working fine for me with VS 2005. I have a sample module working based on the Dev Kit sample template. I also have another (separate) module working based on the excellent tutorial by Michael Washington at http://www.adefwebserver.com/DotNetNukeHELP/DNN_ShowMeThePages/Default.htm. So far, so good.

Now, I need to use multiple view user controls on a module I need to build. So, I thought that I use the view control from the Dev Kit as the main view control and then load the SuperSimple user control from Michael’s sample as a secondary control (for lack of a better name) and load it dynamically with NavigateURL. I recreated the SuperSimple module in the same directory as the Dev Kit sample taking care of renaming the directory name where appropriate (as far as I could tell). I also registered this new module (manually) with the new name and a unique Key name.

I have done extensive searches of the Forum and have tried different ways to use the NavigateURL to invoke the secondary view control and none seem to work for me. The thing is that on the test page I have two other modules and when I introduce the NavigateURL none of the modules show up. The best part is that no errors are displayed either, on the page or the logs. If I rem out the NavigateURL line then the modules appear just fine.

Borderline crazy and not trusting my own test assumptions (something I learned long ago) I decided to test the new copy of the SuperSimple module I created and I put it on a page to run by itself and guess what? It does not work, great. But again, I don’t get any errors on the page or the log. That module is pretty simple indeed, so I thought that just renaming the module name and the directory would be enough to move it. I don’t know what is going on.

Therefore my questions:

1. When using multiple View user controls, how are the “Sub” user controls supposed to be defined? Just like a regular View control???

2. How about the registration, is it the same? I understand that the “Sub” modules should also be registered as View control with a unique Key name. Is this correct?

3. Is there an even simpler sample of a minimal user control I could use for testing? Or what need to be adjusted in Michael’s sample to be able to use it as a “Sub” or “Secondary” view control.

4. Please provide any other detail I may be missing.

I’m going off-line for a while now, my brain hurts… Your help will be appreciated.



 
New Post
10/9/2006 3:12 PM
 

see:

NavigateURL: How to make A DotNetNuke® link

http://www.adefwebserver.com/dotNetNukeHELP/NavigateURL/



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
10/9/2006 11:24 PM
 
CarlosRafi wrote

The thing is that on the test page I have two other modules and when I introduce the NavigateURL none of the modules show up.


This is the normal behavior. If you look closer, you would have also noticed that it is showing the admin skin instead of the portal skin.

You can try this alternative method to avoid these issues.  In addition, you also avoid the need to register any extra view controls.
 
New Post
10/11/2006 10:50 PM
 

Just posted the new sample project that shows how to load view controls in DNN 4.  The code is much cleaner. 

 


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
10/18/2006 1:01 AM
 
mcsenow:

Thank you for your feedback. I did look at the previous version of your architecture and benefited from it. I got it to work in 4.3.5 with modifications of course. I've been meaning to post my findings but been too busy building the module I'm supposed to be doing at this moment.

I liked your architecture because it did not require registration of all the controls to be used, I noticed that you changed this in the new version, could you elaborate on the change of heart? And to follow up on this, isn't the Summary on your page contradicting the Change Log for the download package? What is the benefit of using NavigateURL???

Thank you for your contribution.

Carlos


 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Multiple View Controls, NavigateURL, etc.Multiple View Controls, NavigateURL, etc.


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