Hi people@dnn,
i'm new in this place and i'm using for the first time DNN...
I'm sure this a FAQ question,,, forgive me please but....
How can i add my ascx control to a dnn module?? where can i find a good sample....
this my steps
1) new VB 2005 web project
2) written my ascx file
CODE
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="dnnapp1.ascx.vb" Inherits="dnnapp1.dnnapp1" %>
<table border="1" cellspacing="1" cellpadding="1">
<tr>
<td colspan="2">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
</tr>
<tr>
<td width="346" > TYPE YOU NAME HERE<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
<td width="153" >
<asp:Button ID="Button1" runat="server" Text="Button" /></td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
</tr>
</table>
CODE BEHIND
Imports DotNetNuke
Imports DotNetNuke.Entities.Portals
Imports DotNetNuke.Entities.Modules
Imports DotNetNuke.Common
Imports DotNetNuke.Common.Utilities
Partial Public Class dnnapp1
Inherits DotNetNuke.Entities.Modules.PortalModuleBase
Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Label1.Text = "PAGELOAD TIME: " & Now.Date.ToString & " - " & Now.Date.Millisecond.ToString
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Label2.Text = "PAGEINIT TIME: " & Now.Date.ToString & " - " & Now.Date.Millisecond.ToString
End Sub
Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label3.Text = TextBox1.Text
End Sub
End Class
3) How can i put my ascx in dnn module?????
4) build solution
5) copied dnnapp1.dll into DNN BIN dir
6) copied dnnapp1.ascx into DNN DesktopModules\HTML
7) with HOST i added a new module and added my file.ascx
8) this is response
You have successfully created your module. You can edit the source of the module control by selecting the View Source Action from the Action Menu.
when i put my module in new dnn page
the only think i read is
You have successfully created your module. You can edit the source of the module control by selecting the View Source Action from the Action Menu.
where am i worng????
please can somone tell where can i foind a good saple or guide????
thank's a lot a forgive me.