Loading an ascx control in DotNetNuke
-
hi everyone, I've just started working in DNN and I need to open another ascx control in the same module. After some googling I came to know that there r two methods for that 1)NavigateURL
Response.Redirect(DotNetNuke.Common.Globals.NavigateURL("showrankedresults"), False)
- LoadControl Method.
Dim objModule As Entities.Modules.PortalModuleBase = Nothing
objModule = CType(LoadControl("~/DesktopModules/RankedSearch/ShowRankedResult.ascx"), Entities.Modules.PortalModuleBase)
objModule.ModuleConfiguration = ModuleConfiguration
Controls.Add(objModule)When I run it with the navigateURL, it goes to the next module. but doesn't show anything. I just have a "hi" written in the next module though When I use the LoadControl method, the control gets loaded under the existing control but that's not what I want. I want it to be loaded as if a new page is loaded, Please help me in this regard Thanks in Advance
Rocky My Blog