I've been looking for ways to do this for days now ... and its really killin' me ... anyone, please help.
I want to create a new module in DNN (VB) ... that;
1. does not use DAL or DAL+
2. has only one view.ascx control
3. It has to be a compiled module
I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.
Anyone willing to post a step by step ... would be great...
I have the development environment already set up with;
1. DNN Starter kit
2. VS 2008
3. SQL server
4. DNN up and running in IIS
5. the project builds successfully
If anyone knows a way I can build a module using the DNN Dynamic Module Template in VS 2008 and then strip off the DAL and all the unnecessary layers and extra controls until I have only a working view.ascx that just prints out "Hello World!" to the screen ... that would be great !
Thanks a whole bunch, Norman.
P.S : (I've also tried the hello world tutorial at adefwebserver.com (http://www.adefwebserver.com/DotNetNukeHELP/DNN5_HelloWorld/Default.htm)- and that wizard does'nt show up as it does in the tutorial.)
When first learning the ropes, I'd suggest writing it from scratch and skipping all of the template, ahem, junk.
Here are the basic steps:
View.ascx:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="View.ascx.vb" Inherits="HelloWorld.View" %>
<h1><asp:Literal ID="PageHeaderText" runat="server" /></h1>
View.ascx.vb:
Imports DotNetNuke.Entities.Modules
Partial Public Class View
Inherits PortalModuleBase
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
PageHeaderText.Text = "Hello World"
End If
End Sub
End Class