Introduction to simple ASP. NET Atlas controls-label, hyperlink, select, and image

Source: Internet
Author: User

Author:Dflying Chen(Http://dflying.cnblogs.com/)

Note: This seriesArticleBasicAtlasTranslation of official documents, familiarAtlasYou can skip this step.

This series has three articles:

    1. ASP. NET AtlasIntroduction to simple controls-- SYS. ComponentBase class andSYS. UI. ControlBase Class
    2. ASP. NET AtlasIntroduction to simple controls-- Inputcontrol,Textbox,ButtonAndCheckbox
    3. 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:

    1. Text: Get or setLabel. The content can be displayed in text orHtmlDisplay Mode, depending onHtmlencodeAttribute settings.
    2. 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:

    1. Navigateurl: Get or setHyperlinkNavigationURL, YesAElementHrefProperty packaging.

The following events:

    1. Click: InHyperlinkTriggered when clicked.

SYS. UI. Select

SelectControl encapsulatedDomElementSelect, Can be used to representDrop down list.SelectControls have the following attributes:

  1. 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.
  2. Selectedvalue: Get or set thisList.
  3. Data: Get or setDatatable(AboutAtlasClientDatatableObject, see:AtlasNamespaceSYS. DataIntroduction to the following controls-- Datacolumn,DatarowAndDatatable), RepresentingSelect.
  4. Textproperty: Get or setString, RepresentsDataAttributeDatatableAsSelectThe name of the text field displayed in the entry.
  5. Valueproperty: Get or setString, RepresentsDataAttributeDatatableAsSelectThe name of the Value Field in the entry.

The following events:

    1. Selectionchanged: InSelectIs triggered when the selected entry changes.

SYS. UI. Image

ImageControl as a pairDomElementIMGProvides the following attributes:

    1. Imageurl: Gets or sets a string that represents the image path.IMGElementSRCEncapsulation of attributes.
    2. Alternatetext: Gets or sets a string that represents the image text description.IMGElementALTEncapsulation of attributes.
    3. Width: Get or set the image width.
    4. Height: Get or set the Image Height.
Related Article

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.