DotNetNuke Wiki


DotNetNuke-5-Hello-World

Modified on 2010/10/25 05:54 PM by mrswoop Categorized as Development
This Wiki entry shows you how to create a basic DotNetNuke Module using the WSP model of development, it will provide a basic Hello World message.

Log into the website using the Host account.

From the Host menu, select Module Definitions

At the bottom of the Module Definitions page, select Create New Module

Select New from the Create Module From dropdown.

On the Owner Folder row, click Add Folder

Enter HelloWorld for the Folder Name and click Create Folder

On the Module Folder row, click Add Folder

Enter HelloWorld for the Folder Name and click Create Folder

  • Enter View.ascx for the File Name and select C# for the Language
  • Enter Hello World Module for the Name
  • Check the Add test Page? check box
  • Click the Create Module link

The module will be created.

Using Visual Studio, open the DotNetNuke website by selecting File from the Toolbar, and then select Open Web Site...

In the Solution Explorer, you will see the HelloWorld module under the DesktopModules folder

Open the View.ascx file and switch to Design mode. Type Hello World! and save the page.

In the web browser, refresh the page and see the changes.



You can now do the same thing, with a module connecting to a SQL Server Database.

Credit»

This article was originally reprinted from DotNetNuke 5 Hello World, with permission.
Our thanks go to Michael Washington.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.