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

时间:2021-05-20

类 型 前 缀 示 例 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

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章