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 );
}