SunQuest
 
       Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 6 - Creating Custom Modules
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Creating Custom Modules
By: PACKT Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 8
    2005-08-04

    Table of Contents:
  • Creating Custom Modules
  • Setting Up Your Project (Private Assembly)
  • Creating Controls Manually in Visual Studio
  • Module Edit Control
  • Module Settings Control
  • Adding Module Definitions
  • Adding Your Module to a Page

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Creating Custom Modules - Adding Module Definitions


    (Page 6 of 7 )

    When you upload a free or purchased module to your portal by using the host's file manager, the module definitions are added for you automatically. When developing modules, you will want to be able to debug them in the DotNetNuke environment using Visual Studio. This requires you to add module definitions manually.

    Adding module definitions makes the module appear in the control panel module dropdown when you are signed on as host or admin. It connects your controls to the portal framework.

    To add the module definitions needed for our project:

    1. Hit F5 to run the DotNetNuke solution, log in as host, and click on the Module Definitions option on the Host menu.
    2. Under the Module Definition menu, select Add New Module Definition: 

    3. Enter the name for your module and a short description of what it does. When you are finished, click on the Update link:

    4. This will bring up a new section that allows you to add the definitions for the module. Enter the New Definition name and click on Add Definition. This will add the definition to the Definitions dropdown and will bring up a third section that will allow you to add the controls created in the previous section:

    First, we will add the View control for the module.

    1. Click on the Add Control link to start.

    2. Enter the Title for the control. This is the default title when the control is added to a tab.

    3. Select the Source for the control from the drop-down list. You will be selecting the file name of our control. This is the View control we created in the last section. Select the control from the dropdown.

    4. Select the Type of control. This is the control that non-administrators will see when they view your module on the portal. Select View from the dropdown.

    5. Click Update when done.

    Next we want to add our Edit control.

    1. Enter Edit for the Key field. This is the key that the Actions Menu we created earlier will use to navigate to this control.

    2. Enter a Title for the control.

    3. Select the ShopListEdit.ascx control from the Source drop-down list.

    4. Select Edit as in the Type dropdown.
    5. Click Update when complete.

    Finally we need to add our Settings control.

    1. Click on Add Control to add the third control for this module.

    2. Enter Settings for the key field.

    3. Enter a Title for the control.

    4. Select the Settings.ascx control from the Source drop-down list.

    5. Select Edit as in the Type dropdown.
    6. Click Update when complete.

    This will complete the module definition. Your control page will look like the following.

    Click on the Home page menu item to exit the module definition section.

    More Visual Basic.NET Articles
    More By PACKT Publishing


     

    Buy this book now. This article is excerpted from chapter seven of the book Building Websites with VB.NET and DotNetNuke 3.0, written by Daniel N. Egan (PACKT Publishing, 2005; ISBN: 1904811272). Check it out today at your favorite bookstore. Buy this book now.

    VISUAL BASIC.NET ARTICLES

    - Movement and Player Statistics in a VB.NET T...
    - Creating and Drawing a Game Map in VB.NET
    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...
    - More on Controlling Windows Fax Services Usi...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway