Building Websites with VB.NET and DotNetNuke 3.0

Building Websites with VB.NET and DotNetNuke 3.0
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 50%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Create and manage your own website with DotNetNuke
  • Customize and enhance your site with skins and custom modules
  • Extend your site with forums and the best of third-party add-ons
  • Complete coverage of setup, administration, and development

Chapter 7 - Creating Custom Modules I and II

Chapter 7 - Creating Custom Modules III and IV

Book Details

Language : English
Paperback : 312 pages [ 235mm x 191mm ]
Release Date : March 2005
ISBN : 1904811272
ISBN 13 : 9781904811275
Author(s) : Daniel N. Egan
Topics and Technologies : All Books, CMS and eCommerce, Microsoft Development , Content Management (CMS), DotNetNuke, Microsoft, .NET, Open Source

Table of Contents

Chapter 1: What Is DotNetNuke
Chapter 2: Installing DotNetNuke
Chapter 3: Users, Roles, and Pages
Chapter 4: Standard DotNetNuke Modules
Chapter 5: Host and Admin Tools
Chapter 6: Understanding the DotNetNuke Core Architecture
Chapter 7: Creating Custom Modules
Chapter 8: Creating DotNetNuke Skins
Chapter 9: Enhancing Your Portal
Chapter 10: Deploying Your DotNetNuke Portal
Chapter 11: Creating Multiple Portals
Chapter 12: Implementing the Provider Model in DotNetNuke
  • Chapter 1: What Is DotNetNuke
    • Open-Source Web Portals
      • What Is a Web Portal?
      • Common Portal Features
      • Why DotNetNuke?
        • PHP-Nuke
        • Metadot
        • Rainbow
        • DotNetNuke
      • Benefits of Using an Established Program
    • The DotNetNuke Community
      • Core Team
      • The DotNetNuke Discussion Forum
      • The Bug Tracker
      • DotNetNuke Project Roadmap Team
    • The License Agreement
    • Coffee Connections
      • Determining Client Needs
        • What Is a User Story?
        • Advantages of Using User Stories
        • Coffee Connections User Stories
    • Summary
  • Chapter 2: Installing DotNetNuke
    • Installing DotNetNuke (Local Version)
      • Clean Installation
      • Downloading the Code
      • Setting Up a Virtual Directory
        • Using Windows Explorer (the Easy Way)
        • Using the Virtual Directory Creation Wizard
      • Verifying Default Documents
      • Setting up the Database
    • Upgrading
      • Upgrade Checklist
      • Back Up Your Database
      • Back up Your DotNetNuke files
    • Setting Security Permissions
    • Logging In as Admin and Changing Passwords
    • Summary
  • Chapter 3: Users, Roles, and Pages
    • User Accounts
      • What Is a User?
      • Creating User Accounts
        • Setting Required Registration Fields
        • Registering a User Manually
    • Understanding DotNetNuke Roles
      • Assigning Security Roles to Users
    • Understanding DotNetNuke Pages and tabIDs
      • Administering Pages
    • Membership Provider Model
    • Summary
  • Chapter 4: Standard DotNetNuke Modules
    • DotNetNuke Modules
      • Adding a Module
      • Module Settings
        • Editing a Module
        • Importing and Exporting Content
        • Syndicate Information
        • Online Help and Documentation
        • Editing Module Functionality
    • Standard Modules
      • Account Login Module
      • Announcements Module
      • Banner Module
      • Contacts Module
      • Discussions Module
      • Documents Module
      • Events Module
      • FAQs Module
      • Feedback Module
      • IFrame Module
      • Image Module
      • Links Module
      • News Feed (RSS) Module
      • Text/HTML Module
      • User Accounts Module
      • User Defined Table Module
      • XML/XSL Module
    • Summary
  • Chapter 5: Host and Admin Tools
    • The Difference Between Host and Admin
    • Admin Tools
      • Site Settings
      • Basic Settings
      • Advanced Settings
      • Stylesheet Editor
      • Pages Menu
      • Security Roles
      • User Accounts
      • Vendors
      • Site Log
      • Newsletter
      • File Manager
      • Recycle Bin
      • Log Viewer
      • Skins
      • Languages
    • Host Tools
      • Host Settings
      • Basic Settings
      • Advanced Settings
      • Portals
      • Module Definitions
      • File Manager
      • Vendors
      • SQL
      • Schedule
      • Languages
      • Search Admin
      • Lists
      • Superuser Accounts
      • Extra Options on the Admin Menu
      • Common Tasks
    • Summary
  • Chapter 6: Understanding the DotNetNuke Core Architecture
    • Architecture Overview
    • Diving into the Core
      • Using the Context Object in Your Application
        • The PortalSettings Class
      • Working with the Configuration Files
      • The web.config File
        • Configuring the Providers Used in DotNetNuke
        • Handling the Providers
        • HTTP Modules
        • Application Settings
      • The Global Files
        • Global.aspx.vb
        • Application Start
        • Examining Application_BeginRequest
        • Application Authenticate Request
      • The Globals.vb File
    • Putting It All Together
    • Summary
  • Chapter 7: Creating Custom Modules
    • Coffee Shop Listing Module Overview
      • Setting Up Your Project (Private Assembly)
        • Creating Controls Manually in Visual Studio
        • Creating the View Control
        • Module Edit Control
        • Module Settings Control
        • Adding Module Definitions
        • Adding Your Module to a Page
      • The Datastore Layer
        • SQL Server
        • The Data Access Layer (DAL)
        • The SQLDataProvider Project
        • The Provider File
      • The Business Logic Layer (BLL)
        • CoffeeShopListingInfo and CoffeeShopListingOptionsInfo
        • CoffeeShopListingController and CoffeeShopListingOptionsController
      • The Presentation Layer
        • ShopList.aspx
        • EditShopList.ascx
        • Settings.ascx
      • Testing Your Module
      • Creating Your Installation Scripts
    • Packaging Your Module for Distribution
      • The Install ZIP file
      • Testing Your Installation
    • Summary
  • Chapter 8: Creating DotNetNuke Skins
    • What Are Skins?
    • What Are Containers?
    • Uploading Skins and Containers
      • Uploading as a Host
      • Uploading as Admin
    • Applying Skins
      • Applying a Skin at Host and Portal Levels
        • Using the Skins Manager
        • Using Host and Site Settings
      • Applying a Skin at Page Level
      • Applying a Skin at Module Level
    • Creating Custom Skins
      • File Structure and Setup
        • Skin Images
      • Creating a Skin Using Visual Studio
      • Creating the Skin Web User Control
        • Creating Your Skin Table
        • Setting Up Your Module Panes
        • Adding Skin Objects
        • Adding Images to the Skin
        • Creating Your CSS File
        • Modifying the HTML Code
      • Creating a Skin Using HTML
        • Adding Panes to the Skin
      • Creating Custom Containers
        • Adding Thumbnail Images
    • Packaging Your Custom Skins and Containers
    • Summary
  • Chapter 9: Enhancing Your Portal
    • Must-Have Modules to Enhance Your Portal
      • Adding a Forum to Your Portal
        • YetAnotherForum
        • ActiveForums
      • Adding e-Commerce to Your DotNetNuke Portal
      • Adding Classroom Management to Your Portal
      • Adding Security to Your DotNetNuke Portal
      • Adding a Blog to Your Site
    • Finding Custom Modules
    • Summary
  • Chapter 11: Creating Multiple Portals
    • Multiple Portals
    • Parent Portals Versus Child Portals
      • Setting Up a Parent Portal
        • Registering Your Domain and Setting the DNS
        • Creating a Parent Portal
      • Setting Up a Child Portal
    • Creating Portal Templates
    • Using the Site Wizard
    • Managing Multiple Portals
    • Summary
  • Chapter 12: Implementing the Provider Model in DotNetNuke
    • What Is an HTML Editor?
    • What Is an HTML Editor Provider?
    • HTML Editor Provider
      • Setting Up the Providers Folder
      • Setting Up the Provider Project
      • Creating the Provider
      • Adding Your Provider to the web.config File
      • Other HTML Editor Providers for DotNetNuke
    • Summary

Daniel N. Egan

Over the past seven years, Daniel has held a variety of positions in the information technology and engineering fields. Currently, he is a System Development Specialist for Automated Data Processing's Southern California region working extensively in database applications and Web development. Daniel is an MCP and MCSD.

In addition to his development work, he teaches a VB.NET Certification course at California State University Fullerton as well as serves on its .NET Advisory board. He is also the founder and chief author of Dot Net Doc (, a .NET and DNN developer resource website built using the DotNetNuke framework. He has written numerous articles on DotNetNuke and the underlying DNN architecture. He is also the founder of the LA/Orange County DNN Usergroup and is currenly working on two DNN Related projects. DNNUsergroup Online (, a portal designed to allow usergroups to broadcast their meetings online. DotNetNuke Radio, a live internet radio show about DotNetNuke.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


- 1 submitted: last submission 11 Jul 2012

page 10 Rainbow Typo 25 Apr 05
The phrase "rule our Rainbow" should say "rule out Rainbow"
page 13 Answering Questions 15 Sep 05
The last sentence reads... "Who better to ask questions about DotNetNuke than those<br />who created it?", and the sentence should read "Who better to answer questions about<br />DotNetNuke than those who created it?"
page 27 Web.Config no longer in DNN 3.1 22 Nov 05
In DotNetNuke 3.1, the web.config file is no longer part of the default installation.<br />Instead, you will find two .config files, development.config and release.config. You<br />should make a copy of one of these, and rename it to web.config to continue your<br />installation.
page 132 ApplicationName 09 Mar 06
In the first paragraph, <span class="cit">ApplicaitonName</span> should be <span<br />class="cit">ApplicationName</span>.
page 177 SQLDataProvider Project 15 Sep 05
In the paragraph under the SQLDataProvider Project heading, the project will be<br />called <span class="cit">EganEnterprises.CoffeeShopListing.SqlDataProvider</span> as<br />shown in the screenshot underneath the paragraph.
page 178 Application Block Reference 23 Sep 05
To avoid problems on page 180, we need to create a reference to the ApplicationBlock<br />dll before we can continue.<br /><ol><br /><li>Right-click on the reference folder located below the <span<br />class="cit">EganEnterprises.CoffeeShopListing.SqlDataProvider</span> private assembly<br />project just created and select <span class="scrtext">Add Reference</span>.</li><br /><li>Select the <span class="scrtext">Projects</span> tab.</li><br /><li>Double-click on the DotNetNuke project to place it in the <span<br />class="scrtext">Selected Components</span> box.</li><br /><li>Double-click on the <span class="cit">EganEnterprises.CoffeeShopListing</span><br />project to place it in the <span class="scrtext">Components</span> box.</li> <br /><li>Click on the <span class="scrtext">Browse</span> button and locate <span<br />class="cit">Microsoft.ApplicationBlocks.Data.dll</span>. You will find this file in<br />the <span class="cit">C:\DotNetNuke\controls\DataAccessBlock\bin<span> folder. This<br />application block from Microsoft will be used to facilitate working with our<br />database.</li><br /><li>Click <span class="scrtext">OK</span> to add the reference.</li><br />
page 179 Microsoft.ApplicationBlocks.Data Class 15 Sep 05
This class is now located in the <span<br />class="cit">C:\dotnetnuke\Providers\dataproviders\Sqldataprovider\SQLHelper</span><br />folder and not in the <span<br />class="cit">C:\DotNetNuke\controls\DataAccessBlock\bin</span> folder.
page 187 Importing Namespaces 15 Sep 05
Before the line:<br /><pre>Namespace EganEnterprises.CoffeShopListing</pre><br />you will need to import somenamespaces with:<br /><pre>Imports DotNetNuke<br />Imports DotNetNuke.Common.Utilities</pre>
page 192 ShopList.ascx 15 Sep 05
The heading at the bottom of the page should be ShopList.ascx instead of<br />ShopList.aspx
page 224 Project Location 15 Sep 05
The location of the DotNetNuke project should be <span<br />class="cit">C:\DotNetNuke\DotNetNuke.proj</span> not <span<br />class="cit">C:\DotNetNuke.proj</span> as mentioned at the bottom of the 2nd<br />paragraph.<br />
page 225 Highlighting a Row 15 Sep 05
On the third line, you need to left-click to highlight an entire row on a table.<br />Right-clicking highlights the entire table.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Building Websites with VB.NET and DotNetNuke 3.0 +    Building Websites with Joomla! 1.5 =
50% Off
the second eBook
Price for both: $28.20

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

This book will give you the skills to create and manage DotNetNuke websites as quickly as possible. You will:

  • Install and configure DotNetNuke
  • Use the standard modules
  • Understand the core architecture of DotNetNuke
  • Explore the inner workings of DotNetNuke modules
  • Extend DotNetNuke with by creating powerful custom modules
  • Create your own skin using a HTML Editor
  • Learn about the new Whidbey style Provider Model
  • Find out about where and how to host and deploy your site


In Detail

DotNetNuke is a free, open source evolution of Microsoft's celebrated ASP.NET reference implementation, the IBuySpy Portal Solution Kit. DotNetNuke began life as a framework for constructing data-driven intranet and Internet portal applications. It has now developed into an advanced web content management system with tools to manage a dynamic and interactive data-driven website.

If you work with ASP.NET and VB.NET, and want an interactive website, with forums, news and image management, where visitors can register, participate and contribute to your site, then DotNetNuke is the ideal solution for you. This book is your indispensable guide to creating content-rich websites with DotNetNuke 3.0, as quickly as possible.

The first part of this book gives you a deep understanding of working with basic DotNetNuke sites, guiding you through the features and giving you the confidence to create and manage your own site. After that, you will journey to the heart of DotNetNuke, and learn about its core architecture. From there, you will learn how to customize DotNetNuke sites through skinning and creating custom modules.

Enhancing your site with forums and ecommerce functionality, creating multiple sites and deploying your site round off the book. You will master each of these topics as you leap into the development of a DotNetNuke 3.0 site.


Are you using DotNetNuke 4? Then you might be interested in Building Websites With VB.NET and DotNetNuke 4 book.

Buy this book with Building Websites with VB.NET and DotNetNuke 3.0 and get 25% discount on both the books! Just add them in your shopping cart to get the discount.

DotNetNuke is the leading open source website system for .NET. This book shows you how to get a fully featured website right off the blocks, with forums, news and image management, visitor accounts and registration, and community contribution features. The book then takes VB.NET developers through extending and customizing this powerful application.

Visit the Free Online Edition for Building Websites with VB.NET & DotNetNuke 3.0 and learn more about the book, you can read through a full chapter, "Creating Custom Modules," and discover what each chapter from this best selling book has in store.


You can use this book to help you set up and administer a DotNetNuke portal, even if you have a limited knowledge of ASP.NET. You will learn how to setup and administer an example site, stepping through all the tasks to ease your learning.

If you are a developer, this book will help you extend the DotNetNuke portal by first helping you understand how the core framework works and then show you how to create custom modules and skins. A rudimentary knowledge of VB.NET programming is assumed, but the emphasis is not on becoming a better VB.NET programmer but on taming DotNetNuke.

Who this book is for

This book has been written for both the beginner wanting to set up a website and also ASP.NET developers with a grasp of VB.NET and access to Visual Studio .NET. No prior knowledge of DotNetNuke is assumed.

The new features of DotNetNuke 3.0 are discussed extensively, so even if you have worked with previous versions of DotNetNuke, you will find something new.

Table of Contents

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software