Build a dnn 4. x module development environment and module instance Based on ASP. NET 2.0 (2)

Source: Internet
Author: User
Some friends in the group have been asking how to build ASP-based systems. NET 2.0 dnn 4. X module development environment, subject to the original ASP. net1.1 Thinking Influence of multiple engineering mechanisms, everyone has been waiting for vs2005 to support multiple projects. After some time of study and exploration, we found that dnn4.x actually does not need multiple engineering mechanisms to support development, I want to share my learning income with you. I hope you can correct the mistakes.

For more topics, see www.dnngo.com.

Also welcome to the dnn QQ group: dotnetnuke club I group (9764873) 200/200 (full) dotnetnuke club II group (23072812) 66/200 (under)

This article describes how to develop the dnn4.x module of VB.

In Solution Explorer, right-click "C: \ .. \ dotnetnuke website1 \" at the root, and select "Add new item" in the pop-up menu. The following dialog box is displayed:

Under my template category, there is a "dotnetnuke module" template. Select and enter the module name in the name text box below, select "Visual Basic" in the following language box (the default value is Visual Basic), and click "add". OK, the system will automatically generate a series of basic module files for you. (In this example, enter "test" as the module name)

At this time, the system will display a document to remind you of some information. Let's see what the information marked as "important" is saying:

* Important *
Due to limitations In The templating capabilities of Visual Studio, you will need to manually rename a couple of folders before you Continue .

Rename / App_code / Modulename / App_code / Test

Rename / Desktopmodules / Modulename / Desktopmodules / Test

This can be accomplished In Your development environment by right - Clicking the folder name In The solutions explorer and selecting Rename from the menu.

The system prompts us that due to the limitations of the Visual Studio template's own capabilities, we have to manually modify some directory names, which can be completed in Solution Explorer.

Okay. Let's modify it!

Before modification:

After modification:

Okay. Let's run it. Log on as a host and click "module definitions" in the "host" menu. On the module definition page, click "Add new module definition" to add a module definition. "In the module manifest drop-down box, select the "test" module and click Install.

Check the list of installed modules and find that the "test" module is already in the list.

Next, we need to generate necessary data tables and stored procedures. Double-click desktopmodules \ test \ 01.00.00.sqldataprovider to open the database script, select all, and copy.

Click "SQL" in the "host" menu. Paste the database script into the text box andRun as scriptClick execute ".

Now, the development and definition of the module and the database settings are complete. Let's test it! Click "home" to go to the home page, select the test module from the "module" drop-down list on the control panel, and click "add" to add a test module to the page.

The test module arrives at the specified position for review!

Okay. The development of the VB module is now complete. Next, we will describe how to develop the dnn4.x module of C.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.