C#控件命名规范

C#控件命名规范,遵守规范有利于代码的可维护性。

控件名 前缀
Lable lbl
TextBox txt
Button btn
LinkButton lnkbtn
ImageButton imgbtn
ListBox lst
DropDownList ddl
DataGrid dg
DataList dl
CheckBox chk
RadioButton rdo
RadioButtonList rdolst
Image img
Panel pnl
Calender cal
AdRotator ar
MenuStrip ms
ToolStripMenuItem tsmi
PictureBox pic
StatusStrip ss
DataGridView dgv
Table tbl
RequiredFieldValidator rfv
Comparidator cv
Rangidator rv
ReqularExpressionValidator rev
ValidatorSummary vs
CrystalReportViewer rptvew
ComboBox cbo
DataGridView dgv
GroupBox grp
ImageList il
ListView lv
ColumnHeader ch
StatusLable slbl
TabControl tab
TabPage tp
Timer tmr
ToolStrip ts
ToolStripButton tsbtn
ToolStripDropDownButton tsddb
DomainUpDown dud
FileUpload ful
Repeater rpt

以上就是C#控件命名规范的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » ASP编程