DNN Module Development Series (5) Common controls in--DNN (top)

Source: Internet
Author: User
Tags dnn dotnetnuke

The common controls in DNN are mainly under the Dotnetnuke.ui namespace, and are closely related to module development in DotNetNuke.UI.UserControls, which is an indispensable element in the development of DNN style modules.

Labelcontrol

Brief introduction:

The Label control. This should be the most used one control. Mainly play the role of prompting before the input box, if you click on the question mark icon can give a detailed explanation.

Position:

Controls\labelcontrol.ascx

Property:

ControlName: the corresponding control. Indicates which control the label applies to. If you click on the tag, you can get the focus of the corresponding.

Text: The label displays texts.

Helpkey: Tags help corresponding resourcekey (get the corresponding keyword in the language resource file)

HelpText: Label help text. When used, the question mark icon before the label is displayed if the indicated helptext= "" will not appear.

ResourceKey: Gets the appropriate keyword in the language resource file. In fact, we just need to set a resourcekey, in the resource file, respectively, Resourcekey.text and Resourcekey.help can represent the label text and the Help text separately. This property can also be used in other ASP.net controls, and DNN will automatically parse this property as a text value. For example: Lable,button,hyperlink,listitem (in Radiobuttonlist,dropdownlist, you can implement multilanguage functionality by specifying the ResourceKey attribute in its ListItem), A number of examples can be found in DNN's self-contained modules.

Suffix: suffix, displayed in the text behind the label. Such as:? Or:

How to use:

1, first in the need to apply the page to register this control, such as:

<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>

2, in need to use the location to write down the following code, such as:

<dnn:label id="plTitle" runat="server" controlname="txtTitle" suffix=":" />

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.