Last post May 19, 2006 02:10 PM by claytone19
May 18, 2005 09:34 AM|claytone19|LINK
May 18, 2005 01:23 PM|Nocturnal|LINK
May 19, 2005 09:49 AM|codegalaxy|LINK
May 31, 2005 11:27 AM|claytone19|LINK
You're trying to navigate to a *tab* called Helloworld1 and that doesn't exist. You should navigate to tab HelloWorld, control helloworld1. I believe NavigateURL("HelloWorld","helloworld1") should do it. Look at the various overloaded signatures of that function
to figure out which one to use.
Jan 14, 2006 01:13 PM|dagilleland|LINK
[bump] I thought I would bump this to the top again, 'cause after four hours of searching & experimenting, I still haven't seen a decent posted reply to this kind of question.
As a side-note, I'm aware of approaches that try to use a LoadControl in the Init of the main view, but I'm looking for a simpler way (if it exists), as I don't want to re-do my existing module's code-base...
May 02, 2006 10:02 AM|claytone19|LINK
May 03, 2006 03:08 AM|lini|LINK
May 03, 2006 11:10 AM|claytone19|LINK
May 19, 2006 10:13 AM|hamburger|LINK
It's a fact in DotNetNuke, that all controls of a module will be shown in the Admin skin, if they are named different to "" or "View".
In your case I recommend to use a dispatcher (as single view control of your module). This dispatcher loads a UserControl depending on a QueryString parameter. This should be a code
Public Class HelloWorldDispatcher
Public Sub Page_Load(...)
Dim objModule as PortalModuleBase
Dim s as String = Request.QueryString("View" & ModuleId.ToString)
If s is Nothing OrElse s =
objModule = CType(LoadControl("HelloWorld.ascx"), PortalModuleBase)
ElseIf s = "1"
objModule = CType(LoadControl("HelloWorld1.ascx"), PortalModuleBase)
objModule.ModuleConfiguration = Me.ModuleConfiguration
To switch between the two views use:
- NavigateUrl() -> HelloWorld.ascx
- NavigateUrl(tabId, "", "View" & ModuleId.ToString & "=1") -> HelloWorld1.ascx
- NavigateUrl(tabId, "", "View" & ModuleId.ToString & "=xxx") -> some more sub controls...
I use this pattern in one of my modules and it works best but you have to keep in mind, that some build-in functions of DNN are more tricky to use if you use this dispatcher (e.g. Implementation of IAction).
Note: The ModulId is used in the QueryString to be able to use your module more than once per tab und switch the views independently of each other.
May 19, 2006 02:10 PM|claytone19|LINK