Dnn learning experience

Source: Internet
Author: User
Tags dnn dotnetnuke
Dnn module communication example, learn the good code of event

Dotnetnuke 4.3.5 skin Chinese garbled Problem Solution
When making a skin of dotnetnuke 4.3.5,The text on the skin is garbled.

Solution:

    1. In Dreamweaver, click "Modify-> page properties-> title/encoding" and change "encoding" to "UTF-8"
    2. Modify the globalization section in Web. config as follows:

< Globalization Culture = "ZH-CN" Uiculture = "ZH-CN" Requestencoding = "UTF-8"
Responseencoding = "UTF-8" Fileencoding = "UTF-8"   /> (Remove the carriage return when copying data directly)

The cause of the problem is the encoding andProgramThe Set decoding method is inconsistent. The general dnn help document requires that the encoding method in the globalization Section be modified to gb2312. However, this method causes the dnn to incorrectly decode some Chinese characters.
Dnn & plone website construction system development (content)
Use codesmith and dnnprojecttemplates for dnn Module Development (2)

After dnn is downloaded, it contains three parts: Install, source, and startkit. They have different purposes.
Source mainly controlsSource code, Mainly to compile as DLL. If you do not need to modify the dnn underlying control, you do not need to modify it.
Startkit is used to install the template and generate the basic dnn new module content through the template. It must work with the install part.
Install is a basic portal architecture. You can add a new Moudle through the installed template.

The most complete dnn 4.x installation strategy (applicable to version 3.x) (the latest version 4.5 does not require database installation because MDF is directly attached)

Build a dnn 4. x module development environment and module instance Based on ASP. NET 2.0 (2)
You can use this tutorial.
Dotnetnuke. vscontent encountered a problem using startkit and later found it to be a registry problem.

Http://forums.asp.net/p/977602/1249031.aspx

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ msenvcommunitycontent \ contenttypes \ vstemplate]
"Classname" = "vscontentinstaller. vstemplateinstallerpage"
"Displayname" = "# vstemplatecontentdisplayname"

Page Jump implementation
Http://www.cnblogs.com/PM_2004/archive/2006/09/11/439036.html
The usage and difference between navigateurl and editurl and multiple values in navigateurl

It can be seen that editurl is mainly used to redirect the controlkey between controls on the page. You can pass the parameter to keyname \ keyValue, such as response. Redirect (editurl ("detail"), true), etc.
Navigateurl uses Tabid to jump between pages, and multiple parameter pairs can be passed, which is widely used.

For the problem of multiple parameter pairs in navigateurl, I did this:
Hyptitle. navigateurl = navigateurl (tabinfo. Tabid, null. nullstring, "Itemid =" + Itid. tostring (), "categoryid =" + categorylist. trimend (","))
Pay attention to the format and writing!

tabcontroller ctltab = New tabcontroller ();
tabinfo objtab = ctltab. gettabbyname ( " product " );
This . response. redirect (globals. navigateurl (objtab. tabid), true );

View_entry control is defined. You can use editurl ("Itemid "," 123" , View_entry) method.

For the same module, the runout between different controls and the transfer of a parameter, you can use

Editurl (keyname, keyValue, controlkey), which can be omitted

Editurl (keyname, keyValue)

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.