Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Loading an ascx control in DotNetNuke

Loading an ascx control in DotNetNuke

Scheduled Pinned Locked Moved ASP.NET
phpcomhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rocky
    wrote on last edited by
    #1

    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)

    1. 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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups