欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

C#控件命名规范汇总(超详细)

程序员文章站 2023-12-19 14:48:28
类 型 前 缀 示 例 adrotator adrt adrttopad bulletedlist blst blstc...
类 型 前 缀 示 例
adrotator adrt adrttopad
bulletedlist blst blstcity
button btn btnsubmit
calendar cal calmettingdates
checkbox chk chkblue
checkboxlist chkl chklfavcolors
dropdownlist drop dropcountries
fileupload fup fupimage
hiddenfield hfld hfldname
hyperlink hlk hlkdetails
image img imgauntbetty
imagebutton ibtn ibtnsubmit
imagemap imap imapsite
label lbl lblresults
linkbutton lbtn lbtnsubmit
listbox lst lstcountries
literal ltl ltltitle
localize loc locchina
multiview mvw mvwform1
panel pnl pnlform2
placeholder plh plhformcontents
radiobutton rad radfemale
radiobuttonlist radl radlgender
substitution subs substime
table tbl tblcountrycodes
textbox txt txtfirstname
view vw vwcity
wizard wiz wizregister
xml xml xmlbooks

data control
类 型 前 缀 示 例
accessdatasource ads adspubs
datalist dlst dlsttitles
detailview dvw dvwtitles
formview fvw fvwfonts
gridview gvw gvwcity
objectdatasource ods odsmenus
repeater rpt rptqueryresults
reportviewer rvw rvwrecord
sitemapdatasource smds smdssite
sqldatasource sds sdsbooks
xmldatasource xds xdstitles

validation control
类 型 前 缀 示 例
comparevalidator valc valcvalidage
customvalidator valx valxdbcheck
rangevalidator valg valgage
regularexpressionvalidator vale valeemail
requiredfieldvalidator valr valrfirstname
validationsummary vals valsformerrors


navigation control
类 型 前 缀 示 例
menu mnu mnuuser1
sitemappath smp smpsite1
treeview trvw trvwmenu


login control
类 型 前 缀 示 例
changepassword cpwd cpwduser1
createuserwizard cuw cuwlogin
login log logcenter
loginname logn lognuser
loginstatus logs logsuser
loginview logv logvuser
passwordrecovery pwdr pwdruser


webparts control
类 型 前 缀 示 例
appearanceeditorpart paed paedpart1
behavioreditorpart pbed pbedpart2
catalogzone zca zcatcity
connectionszone zcon zcondatabase
declarativecatalogpart pdca pdcapart1
editorzone zed zednews
importcatalogpart pica picapart
layouteditorpart pled plednews
pagecatalogpart ppca ppcamail
propertygrideditorpart ppge ppgeserver
proxywebpartmanager mpwp mpwpweb
webpartmanager mwp mwpsite1
webpartzone zwp zwpsite2

上一篇:

下一篇: