标准控件缩写规范

类 型

前 缀

示 例

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

.net控件名缩写规范

基本类型: 数据类型缩写  
string str  
int i  
char chr  
sbyte sb  
byte bt  
uint ui  
long l  
ulong ul  
float f  
double d  
bool b  
decimal dec

——————————————————————————————————————————
一、web控件 控件名缩写  
AdRotator art  
Button btn  
Calendar cd  
CheckBox chk  
CheckBoxList chkl  
CompareValidator cpv
CustomValidator ctv  
DataGrid dg  
DataList dl  
DropDownList ddl  
HyperLink hl  
Image img  
ImageButton Ibtn  
Label lbl  
ListBox lst  
Panel pl  
PlaceHolder ph  
RadioButton rb  
RadioButtonList rbl  
RangeValidator rv  
RegularExpressionValidator rev  
Repeater rp  
RequiredFieldValidator rfv  
Table tb  
TableCell tc  
TableRow tr  
TextBox txt  
ValidationSummary vs  
XML XML   
——————————————————————————————————————————
二、html控件 控件名缩写  
HtmlAnchor hah  
HtmlButton hbtn
HtmlForm hform
HtmlGenericControl hgc  
HtmlImage himg  
HtmlInputButton(按钮) htxt  
HtmlInputButton(重置) hrbtn  
HtmlInputButton(提交) hcbtn  
HtmlInputCheckBox hick  
HtmlInputFile hifile  
HtmlInputHidden hihidden  
HtmlInputImage hiimg  
HtmlInputRadioButton hirb  
HtmlInputText(密码) hpwd  
HtmlInputText(文本) hitxt  
HtmlSelect hslt  
HtmlTable htab  
HtmlTableCell htc  
HtmlTableRow htr  
HtmlTextArea htxta

————————————————————————————————————————————
三 、ADO.NET控件 命名规范 类型前缀示例

Connection con conNorthwind  
Command cmd cmdReturnProducts  
Parameter parm parmProductID  
DataAdapter dad dadProducts  
DataReader dtr dtrProducts  
DataSet dst dstNorthWind  
DataTable dtbl dtblProduct  
DataRow drow drowRow98  
DataColumn dcol dcolProductID  
DataRelation drel drelMasterDetail  
DataView dvw dvwFilteredProducts

————————————————————————————————————————————
标准控件
1 btn Button 
2 chk CheckBox 
3 ckl CheckedListBox 
4 cmb ComboBox 
5 dtp DateTimePicker 
6 lbl Label 
7 llb LinkLabel 
8 lst ListBox 
9 lvw ListView 
10 mtx MaskedTextBox 
11 cdr MonthCalendar 
12 icn NotifyIcon 
13 nud NumeircUpDown 
14 pic PictureBox 
15 prg ProgressBar 
16 rdo RadioButton 
17 rtx RichTextBox 
18 txt TextBox 
19 tip ToolTip 
20 tvw TreeView 
21 wbs WebBrowser 
容器控件
1 flp FlowLayoutPanel 
2 grp GroupBox 
3 pnl Panel 
4 spl SplitContainer 
5 tab TabControl 
6 tlp TableLayoutPanel 
菜单和工具栏
1 cms ContextMenuStrip 
2 mns MenuStrip 
3 ssr StatusStrip 
4 tsr ToolStrip 
5 tsc ToolStripContainer 
数据
1 dts DataSet 
2 dgv DataGridView 
3 bds BindingSource 
4 bdn BindingNavigator 
5 rpv ReportViewer 
对话框
1 cld ColorDialog 
2 fbd FolderBrowserDialog 
3 fnd FontDialog 
4 ofd OpenFileDialog 
5 sfd SaveFileDialog 
组件
1 bgw BackgroundWorker 
2 dre DirectoryEntry 
3 drs DirectorySearcher 
4 err ErrorProvider 
5 evl EventLog 
6 fsw FileSystemWatcher 
7 hlp HelpProvider 
8 img ImageList 
9 msq MessageQueue 
10 pfc PerformanceCounter 
11 prc Process 
12 spt SerialPort 
13 scl ServiceController 
14 tmr Timer 
印刷
1 psd PageSetupDialog 
2 prd PrintDialog 
3 pdc PrintDocument 
4 prv PrintPreviewControl 
5 ppd PrintPreviewDialog 
水晶报表
1 crv CrystalReportViewer 
2 rpd ReportDocument 
其他
1 dud DomainUpDown 
2 hsc HScrollBar 
3 prg PropertyGrid 
4 spl Splitter 
5 trb TrackBar 
6 vsc VScrollBar

==============================================

<!--------------A----------------->
AdRotator                   ar

<!--------------B----------------->
Button                      btn

<!--------------C----------------->
Calender                    cal
CheckBox                    chk
CheckBoxList                chklst
Column (DataGridView的)     col
ColumnHeader (ListView 的) ch
Combobox                    cbo
CompareValidator            cv
CrystalReportViewer         rptvew

<!--------------D----------------->
DataGrid                    dg
DataGridView                dgv
DataList                    dl
DomainUpDown                dud
DropDownList                ddl

<!--------------F----------------->
FileUpload                  ful
Form                        frm

<!--------------G----------------->
GridView                    gv
GroupBox                    grp

<!--------------H----------------->
HiddenField                 hf

<!--------------I----------------->
Image                       img
ImageButton                 imgbtn
ImageList                   il

<!--------------L----------------->
Label                       lbl
LinkButton                  lnkbtn
ListBox                     lst
ListView                    lv

<!--------------M----------------->
MenuStrip                   ms

<!--------------O----------------->
ObjectDataSource            ods

<!--------------P----------------->
PagedDataSource             pds
Panel                       pnl
PictureBox                  pic

<!--------------R----------------->
RadioButton                 rdo
RadioButtonList             rdolst
RangeValidator              rv
RegularExpressionValidator rev
Repeater                    rpt
RequiredFieldValidator      rfv

<!--------------S----------------->
StatusLabel                 slbl
StatusStrip                 ss

<!--------------T----------------->
TabControl                  tab
Table                       tbl
TabPage                     tp
TextBox                     txt 
Timer                       tmr
ToolStrip                   ts
ToolStripButton             tsbtn
ToolStripDropDownButton     tsddb
ToolStripLabel              tslbl
ToolStripMenuItem           tsmi
TreeView                    tv/tvw

<!--------------V----------------->
ValidatorSummary            vs

<!--------------W----------------->
WebBrowser                  wb

C# 控件缩写规范的更多相关文章

  1. (转载)C#控件缩写规范

    标准控件缩写规范 类 型 前 缀 示 例 Adrotator adrt adrtTopAd BulletedList blst blstCity Button btn btnSubmit Calend ...

  2. C# 控件缩写大全+命名规范+示例

    如有转载,请注明出处:http://www.cnblogs.com/flydoos/archive/2011/08/29/2158903.html C# 控件缩写大全+命名规范+示例 写程序的时候突然 ...

  3. Visual Studio C#的winform/webform/asp.net控件命名规范

    控件命名规范 类型 前缀 示例 AdRotator adrt adrtTopAd Button btn btnSubmit Calendar cal calMettingDates CheckBox ...

  4. Visual C#中的winform/webform/asp.net控件命名规范

                                                                            1.控件命名规范 类型 前缀 示例 AdRotator ...

  5. C#中常见的winform控件命名规范

    我们知道Button 常常简称为btn,那么Winform中的其它控件呢,这篇文章在C#的winform控件命名规范 的基础上对一些控件的名称的简称进行了整理. 1. 标准控件 NO. 控件类型简写 ...

  6. C#控件命名规范

    文档名称: C#控件命名规范 撰写作者: codefly 版本编号: V1.1 C#控件命名规范 一.Data Control 类型 前缀 示例 AccessDataSource ads adsPub ...

  7. Visual Studio 控件命名规范(很详细)

    VS 控件命名规范 Type Prefix Example Array arr arrShoppingList Boolean bln blnIsPostBack Byte byt bytPixelV ...

  8. C#中常见的winform控件命名规范 转

    我们知道Button 常常简称为btn,那么Winform中的其它控件呢,这篇文章在C#的winform控件命名规范 的基础上对一些控件的名称的简称进行了整理. 1. 标准控件 NO. 控件类型简写 ...

  9. Winform 控件命名规范

    前言 最近 Winform 项目做得比较多,控件命名规范上常用的能记住,但是有些总要查,写个记录吧.方便以后自己用,大家也可以参考. 标准控件 序号 控件类型简写 控件类型 1 btn Button ...

随机推荐

  1. MySQL之多表查询(笛卡尔积查询、内连接、外连接(左外连接,右外连接)、union、union all )

    多表查询 测试数据 create table emp (id int,name char(10),sex char,dept_id int); insert emp values(1,"大黄 ...

  2. GO 空白标识符 _

    空白标识符 _ 也被用于抛弃值,如值 5 在:_, b = 5, 7 中被抛弃. _ 实际上是一个只写变量,你不能得到它的值.这样做是因为 Go 语言中你必须使用所有被声明的变量,但有时你并不需要使用 ...

  3. JavaScript 数字

    数字(Number)也称为数值或数. 数值直接量 当数字直接出现在程序中时,被称为数值直接量.在 JavaScript 程序中,直接输入的任何数字都被视为数值直接量. 示例1 数值直接量可以细分为整型 ...

  4. java获取指定月份有几个星期x,获取指定月份跨了多少个星期

    例如获取2020年5月一共有多少个星期二,一共跨了多少个星期 public class MainTest { public static void main(String[] args) throws ...

  5. git rebase 与git merge 小结

    git merge是用来合并两个分支的. $ git merge b   将b分支合并到当前分支 同样  $ git rebase b ,也是把 b分支合并到当前分支 ---------------- ...

  6. HackerOne去年发放超过8200万美元的赏金,联邦政府参与度大幅上涨

    2019年,由黑客驱动的漏洞赏金平台HackerOne支付的漏洞奖金几乎是前几年总和的两倍,达到8200万美元. HackerOne平台在2019年也将注册黑客数量翻了一番,超过了60万,同时全年收到 ...

  7. i.MX RT600之DMIC外设介绍及应用

    恩智浦的i.MX RT600是跨界处理器产品,同样也是i.MX RTxxx系列的开山之作.不同于i.MX RT1xxx系列单片机,i.MX RT600 采用了双核架构,将新一代Cortex-M33内核 ...

  8. 1-1SpringBoot简介

    Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程.该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置.通过 ...

  9. PaperReading20200226

    CanChen ggchen@mail.ustc.edu.cn   To share or not share Motivation: With the publiaction of NAS101, ...

  10. js保留两位小数的数字格式化方法

    // 格式化数字(保留两位小数) numberFormat (num) { let percent = Number(num.toString().match(/^\d+(?:\.\d{0,2})?/ ...