Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting Startedadd ascx to ddn - tutorial add ascx to ddn - tutorial
Previous
 
Next
New Post
2/4/2011 6:46 AM
 
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">&nbsp;
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
 </tr>
   <tr>
    <td colspan="2">&nbsp;
        <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
 </tr>
   <tr>
    <td width="346" >&nbsp;TYPE YOU NAME HERE<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
    <td width="153" >&nbsp;
        <asp:Button ID="Button1" runat="server" Text="Button" /></td>
  </tr>
     <tr>
    <td colspan="2">&nbsp;
        <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.




 
New Post
2/4/2011 4:41 PM
 
Maybe you could start with a good tutorial for a "quick win". Starting from there it is a little bit easier to design your own ideas....

You can find a pretty good step by step tutorial at Johans Site here

Cheers

Kai
 
New Post
2/7/2011 3:43 AM
 
thanks a lot for your help but.... the link in your replay.... is broken
 
New Post
2/15/2011 8:02 AM
 
Hi,

Check Michael Washington's  tutorials for module creation, the registration part is there too...

http://www.adefwebserver.com/DotNetNu...

Regards,
DB
 
New Post
2/16/2011 1:53 PM
 
Strange....when i click on it, the page i want to is coming up.

Well, lets try this: http://www.sipidcode.com/post/(VB)-DN...

Cheers

Kai
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting Startedadd ascx to ddn - tutorial add ascx to ddn - tutorial


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out