aDEFWEBSERVER
Los Angeles, CA *  Webmaster@ADefWebserver.com

 

Creating a DotNetNuke® Module using notepad -
For absolute beginners! (Page 4) page 3

 

Compile the module:

 

 

.Net applications place their compiled class files (.dll's) in a directory called "bin". Any compiled class file needs to reside in the "bin" directory.

Up until now the web control files ("ShowMessage.ascx" and "WriteMessage.ascx") have referred to the class file ("ImportantMessages.vb") directly using the "SRC=" directive. This directive tells the controls exactly where to find the class file if it is not compiled and placed in the "bin" directory..

We now want to compile the "ImportantMessages.vb" into a .dll called "ImportantMessages.dll" and place it in the bin directory. .Net will automatically know where to find the class in the "bin" directory"

Open  the web control files ("ShowMessage.ascx" and "WriteMessage.ascx") and change the line at the top of each from "Src=" to "codebehind="

 

    The first step is to make a directory (for example "C:\TEMP\ImportantMessage\Compiled") and place in it the files: "ImportantMessages.vb", "ShowMessage.ascx","WriteMessage.ascx", "ShowMessage.ascx.resx", "WriteMessage.ascx.resx" and a copy of "DotNetNuke.dll" (this is found in the "bin" directory of the DotNetNuke installation, usually at "C:\Inetpub\wwwroot\DotNetNuke\bin").
    Go to the command prompt (usually located in your Start/Programs/Accessories directory) and navigate to the directory and type the following:
 

vbc /t:library /r:system.dll /r:system.web.dll /r:system.drawing.dll /r:DotNetNuke.dll ImportantMessages.vb

 

  After it compiles you will see a new file in the directory called "ImportantMessages.dll"

Note: You might have problems compiling. You can get help here.

 

The compilation of the module is complete.

   

Next... package the DNN module

4 of 5


Buy DotNetNuke Modules from Snowcovered

(C) by Michael Washington - ADefWebserver.com - Webmaster@ADefWebserver.com

DotNetNuke® is a registered trademark of Perpetual Motion Interactive Systems Inc.