Checkbox (Check button)/radiobutton (single choice button)/bulletedlist Control

Source: Internet
Author: User

Common properties of some controls: checkbox (Check button) and radiobutton (single-choice button)
Checkbox
Rendering Method-appearance: backcolor/bordercolor/borderstyle/forecolor/text/textalign (control text left and right)
Automatic Return-Behavior: autopostback (true)/visible
Radiobutton
Behavior: groupname (items with the same attribute value are regarded as a group; otherwise, each item is a group)

Bulletedlist Control
Similar to other list controls (such as checkboxlist), they are derived from the listcontrol class, so the usage and many attributes are similar. The main function is to create an unordered or ordered (with numbers) you can directly add static items or dynamically bind data.
Style: buletimageurl (Project symbol image)
Add static items
Behavior: displaymode (text/hyperlink/linkbutton)
Appearance: bulletstyle (notset/numberd/loweralpha/upperalpha/lowerroman/upperroman/disc/circle/square/customimage)

Protected   Void Bullentedlist_databound ( Object Sender, eventargs E) // Hyperlink may useCode
{
  For ( Int I = 0 ; I < Bulletedlist. Items. Count; I ++ )
{
Bullentedlist. items [I]. Value =   " ~ /Write. aspx? Id = "   + Bulletedlist. items [I]. value;
}
}

 

Protected   Void Bulletedlist_click ( Object Sender, bullentedlisteventargs E) // Code that may be used by linkbutton
{
Response. Write (bulletedlist. items [E. Index]. Text );
}

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.