Hi,
I am getting an error loading a custom module. The module initially loads OK. The trouble starts when I try to use NavigateURL. I have a LinkButton that executes this redirect in the click method to load a new user control with a parameter (MbrId).
Response.Redirect(Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "DocsList", "mid=" & CStr(ModuleId) & "&MbrId=" & MbrId))
The user control was part of a module upload. Here is the definition.
<control>
<key>DocsList</key>
<title>Member Documents List</title>
<src>DesktopModules/SSCITableMod/DocsList.ascx</src>
<type>View</type>
<helpurl>http://www.dotnetnuke.com/default.aspx?tabid=787</helpurl>
</control>
It crashes on this statement in Skin.vb:
objPortalModuleBase = CType(Me.LoadControl("~/" & objModule.ControlSrc), PortalModuleBase)
with this error:
System.InvalidCastException = {"Unable to cast object of type 'ASP.desktopmodules_sscitablemod_docslist_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'."}
What am I doing wrong? This module was working fine until I tried the redirect. Any suggestions would be appreciated.
Thanks,
G. M.