C#控件命名规范 C#控件命名规范汇总(超详细)
人气:0想了解C#控件命名规范汇总(超详细)的相关内容吗,在本文为您仔细讲解C#控件命名规范的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:C#,控件命名规范,下面大家一起来学习吧。
类 型 | 前 缀 | 示 例 |
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 |
加载全部内容