asp.net服务器控件命名规范:
Control | Prefix | Example |
Label | lbl | lblSurname |
TextBox | txt | txtSurname |
GridView | drg | drgResults |
Button | btn | btnSave |
ImageButton | ibtn | ibtnSave |
Hyperlink | lnk | lnkHomePage |
DropDownList | ddl | ddlCompany |
ListBox | lst | lstCompany |
DataList | dlst | dlstAddress |
Repeater | rep | repSection |
Checkbox | chk | chkMailList |
CheckBoxList | chk | chkAddress |
RadioButton | rdo | rdoSex |
RadioButtonList | rdo | rdoAgeGroup |
Image | img | imgLogo |
Panel | pan | panSection |
PlaceHolder | plh | plhHeader |
Calender | cal | calMyDate |
Adrotator | adr | adrBanner |
Table | tbl | tblResults |
[All] Validators | val | valCreditCardNumber |
ValidationSummary | vals | valsErrors |