当前位置 : 主页 > 网络编程 > ASP >

.Net中控件的命名规则

来源:互联网 收集:自由互联 发布时间:2023-01-30
一、基本数据类型前缀 数据类型 数据类型简写 Array arr Boolean bln Byte byt Char chr DateTime dtm Decimal dec Double dbl Integer int Long lng Object obj Short shr Single sng String str 二、ADO.NET对象前缀 控件类型

一、基本数据类型前缀

数据类型数据类型简写ArrayarrBooleanblnBytebytCharchrDateTimedtmDecimaldecDoubledblIntegerintLonglngObjectobjShortshrSinglesngStringstr

二、ADO.NET对象前缀

控件类型控件类型简写CommandcmdConnectionconnDataAdapterdaDataColumndcolDataReaderdrDataRelationDrelDataRowdrowDataSetdsDataTabletblDataViewdvParameterparm

三、WinForm Control 命名规范

控件类型控件类型简写BackgroundWorkerbgwBindingNavigatorbdnBindingSourcebdsButtonbtnCheckBoxchkCheckedListBoxclstColorDialogcdlgComboBoxcboContextMenuStripcmsCrystalReportViewercrvDataGriddgrdDataGridViewdgvDataSetdtsDateTimePickerdtpDirectoryEntrydreDirectorySearcherdrsDomainUpDowndudErrorProvidererrEventLogevlFileSystemWatcherfswFlowLayoutPanelflpFolderBrowserDialogfbdlgFontDialogfdlgFormfrmGroupBoxgrpHelpProviderhlpHscrollBarhsbImageListilstLabellblLinkLabelllblListBoxlstListViewlvwMainMenummnuMaskedTextBoxmtxMenuStripmsMessageQueuemsqMonthCalendarcdrNotifyIconicnNumeircUpDownnudOpenFileDialogofdlgPageSetupDialogpsdlgPanelpnlPerformanceCounterpfcPictureBoxpicPrintDialogpdlgPrintDocumentpdcPrintPreviewControlprvPrintPreviewDialogppdProcessprcProgressBarpgbPropertyGridprgRadioButtonrbtnReportDocumentrpdReportViewerrpvRichTextBoxrtxSaveFileDialogsfdlgSerialPort sptServiceControllersclSplitContainerspcSplittersplStatusBarstbStatusStripssTabControltabTableLayoutPaneltlpTextBoxtxtTimertmrToolBartlbToolStriptsToolStripButtontsbtnToolStripContainertscToolStripDropDownButtontsddbtnToolStripLabeltslblToolStripMenuItemtsmiToolStripSeparatortssToolStripSplitButtontssbtnToolTiptipTrackBartrbTreeViewtvwVscrollBarvsbWebBrowserwbs

四、WebControl 命名规范

控件类型控件类型简写AdrotatoradrtBulletedListblstButtonbtnCalendarcalCheckBoxchkCheckBoxListchklCompareValidatorvalcCustomValidatorvalxDataGriddgDataListdlDetailsViewdtvDropDownListddlFileUpLoadfupFormViewfmvGridViewgrvHiddenFieldhfldHyperLinklnkImageimgImageButtonibtnImageMapimapLabellblLinkButtonlbtnListBoxlstLiteralltlLocalizelocMultiViewmvwPanelpnlPlaceHolderplhRadioButtonradRadioButtonListradlRangeValidatorvalgRegularExpressionregRepeaterrptRequiredFieldValidatorvalrSubStitutionsubsTabletblTableCelltblcTableRowtblrTextBoxtxtValidationSummaryvalsViewvwWizardwiz

到此这篇关于.NET控件命名规范的文章就介绍到这了。希望对大家的学习有所帮助,也希望大家多多支持自由互联。

上一篇:ASP.NET配置文件中自定义节点
下一篇:没有了
网友评论