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", 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: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. |
DotNetNuke® is a registered trademark of Perpetual Motion Interactive Systems Inc.