Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 885711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:57:10+00:00 2026-05-15T12:57:10+00:00

I’ve been looking for ways to do this for days now … and its

  • 0

I’ve been looking for ways to do this for days now … and its really killin’ me … anyone, please help.

I want to create a new module in DNN (VB) … that;

1. does not use DAL or DAL+
2. has only one view.ascx control
3. It has to be a compiled module

I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.

Anyone willing to post a step by step … would be great…

I have the development environment already set up with;
1. DNN Starter kit
2. VS 2008
3. SQL server
4. DNN up and running in IIS
5. the project builds successfully

If anyone knows a way I can build a module using the DNN Dynamic Module Template in VS 2008 and then strip off the DAL and all the unnecessary layers and extra controls until I have only a working view.ascx that just prints out “Hello World!” to the screen … that would be great !

Thanks a whole bunch,
Norman.

P.S : (I’ve also tried the hello world tutorial at adefwebserver.com (http://www.adefwebserver.com/DotNetNukeHELP/DNN5_HelloWorld/Default.htm)- and that wizard does’nt show up as it does in the tutorial.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:57:11+00:00Added an answer on May 15, 2026 at 12:57 pm

    When first learning the ropes, I’d suggest writing it from scratch and skipping all of the template, ahem, junk.

    Here are the basic steps:

    1. Create a new Visual Studio “ASP.NET Web Application” project, I outlined the basic configuration settings for a web application project in a blog post awhile back: Creating DotNetNuke Modules using a Web Application Project (WAP)
    2. Add a reference to the DotNetNuke.dll
    3. Add a new Web User Control (.ascx) file – call it View.ascx.
    4. Make sure the user control inherits from PortalModuleBase (see below). Fill it out with some sample hello world code (again, see below)
    5. You can import this user control (by itself) into DNN. In DNN 5, select “Create New Module” from the host -> module definitions page.
    6. You can then export the module package, if desired, from the Host -> Module Definitions or Host -> Extensions page (keep in mind though, you need to be running locally in order to export the package, it won’t let you do it if you’re on a remote server or something)

    View.ascx:

    <%@ Control Language="vb" AutoEventWireup="false" CodeBehind="View.ascx.vb" Inherits="HelloWorld.View" %>
    
    <h1><asp:Literal ID="PageHeaderText" runat="server" /></h1>
    

    View.ascx.vb:

    Imports DotNetNuke.Entities.Modules
    
    Partial Public Class View
        Inherits PortalModuleBase
    
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not Page.IsPostBack Then
                PageHeaderText.Text = "Hello World"
            End If
        End Sub
    
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.