Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 4 - 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
     
    IBM developerWorks
     
    ADVERTISEMENT

    Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!

    Creating Custom Modules - Module Edit Control


    (Page 4 of 7 )

    The Edit control is used by administrators to modify or change how your module functions. To set up the Edit control follow the steps we took to create the View control with the following exceptions:

    • Do not implement the IPortable, IActionable, and ISearchable interfaces. The context menu only works with the View control. The control menu is used to navigate to the Edit control.
    • Change the text in the table to say EditShopListRowOne and EditShopListRowTwo.

    • Save the file as EditShopList.ascx.

    Add the following in the HTML section:

    <%@ Control language="vb" AutoEventWireup="false" Inherits="EganEnterprises.CoffeeShopListing.EditShopList" CodeBehind="EditShopList.ascx.vb"%>

    and this to the code-behind page:

    Imports DotNetNuke
    Namespace EganEnterprises.CoffeeShopListing

      Public MustInherit Class EditShopList
        Inherits Entities.Modules.PortalModuleBase

        Private Sub Page_Load(ByVal sender As _
        System.Object, _
        ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        End Sub

      End Class

    End Namespace

    Again, add an HTML table to your control. When viewing your control in design mode it should look like the figure below.

    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 4 hosted by Hostway