控件命名

控件命名

控件类型 前缀

Web控件
Label lbl
TextBox txt
Button btn
LinkButton lnkBtn
ImageButton imgBtn
ListBox lst
DataGrid dtGrid
GridView gv
DataList dtLst
Repeater rpt
DropDownList drLst
CheckBox chk
CheckBoxList chkLst
RadioButtonList rdBtnLst
RadioButton rdBtn
Image img
Panel pnl
PlaceHolder plcHld
Calendar clnd
AdRotator adRt
Table tbl
ToolBar tbar
ToolBarButton tbBtn
ToolBarTextBox tbTxt
ToolBarDropDownList tbDrlst 所有ToolBar里面的子控件命名均以tb开头加该控件的平常缩写. 缩写的首字母大写.
CompareValidator cmpVld
RequiredFieldValidator rqdFVld
CustomValidator cstVld
Xml xml
CrystalReportViewer cryRptV
TreeView tv
Literal ltl
ValidationSummary vldSy
RegularExpressionValidator rglExpVld
RangeValidator rngVld

posted on 2009-08-04 09:40  沸石  阅读(240)  评论(0编辑  收藏  举报

导航