Author:Dflying Chen(Http://dflying.cnblogs.com/)
Note: This seriesArticleBasicAtlasTranslation of official documents, familiarAtlasYou can skip this step.
This series has three articles:
- ASP. NET AtlasIntroduction to simple controls-- SYS. ComponentBase class andSYS. UI. ControlBase Class
- ASP. NET AtlasIntroduction to simple controls-- Inputcontrol,Textbox,ButtonAndCheckbox
- ASP. NET AtlasIntroduction to simple controls-- Label,Hyperlink,SelectAndImage
This is the third article: Asp. net Atlas introduction to simple controls -- Label , hyperlink , select and image
AtlasAll client controls in are inherited or indirectly inherited fromSYS. UI. ControlBase class (see:ASP. NET AtlasIntroduction to simple controls-- SYS. ComponentBase class andSYS. UI. ControlBase ClassIn the previous article (ASP. NET AtlasIntroduction to simple controls-- Inputcontrol,Textbox,ButtonAndCheckbox), I introducedInputcontrol,Textbox,ButtonAndCheckboxControl. This article will continueAtlasThe following four built-in simple controls are available:Label,Hyperlink,SelectAndImage.
SYS. UI. Label
AtlasInLabelControls can be used to display a piece of text, orHtml.LabelControls have the following attributes:
- Text: Get or setLabel. The content can be displayed in text orHtmlDisplay Mode, depending onHtmlencodeAttribute settings.
- Htmlencode: Get or set a Boolean value. RepresentativeLabelWhether the content is displayed in plain text. The default value isFalse.
SYS. UI. hyperlink
HyperlinkControl inherits fromSYS. UI. LabelUsed to encapsulateHtmlInAElement.HyperlinkBesidesLabelIn addition to all attributes, the following attributes are also provided:
- Navigateurl: Get or setHyperlinkNavigationURL, YesAElementHrefProperty packaging.
The following events:
- Click: InHyperlinkTriggered when clicked.
SYS. UI. Select
SelectControl encapsulatedDomElementSelect, Can be used to representDrop down list.SelectControls have the following attributes:
-
- Firstitemtext: Get or setListThe text of the first item in. Can be set to something like "Please Select ......" Text to prompt the user to enter. The default value is null, that is, the text prompted for input is not displayed.
-
- Selectedvalue: Get or set thisList.
- Data: Get or setDatatable(AboutAtlasClientDatatableObject, see:AtlasNamespaceSYS. DataIntroduction to the following controls-- Datacolumn,DatarowAndDatatable), RepresentingSelect.
-
- Textproperty: Get or setString, RepresentsDataAttributeDatatableAsSelectThe name of the text field displayed in the entry.
-
- Valueproperty: Get or setString, RepresentsDataAttributeDatatableAsSelectThe name of the Value Field in the entry.
The following events:
- Selectionchanged: InSelectIs triggered when the selected entry changes.
SYS. UI. Image
ImageControl as a pairDomElementIMGProvides the following attributes:
- Imageurl: Gets or sets a string that represents the image path.IMGElementSRCEncapsulation of attributes.
- Alternatetext: Gets or sets a string that represents the image text description.IMGElementALTEncapsulation of attributes.
- Width: Get or set the image width.
- Height: Get or set the Image Height.