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=":" />