ASP.NET命名规范

控件名 

标准命名(前缀)

Label

lbl

TextBox`

txt

Button

btn

LinkButton

lkb

ImageButton

imb

HyperLink

hlk

DropDownList

ddl

ListBox

lsb

CheckBox

chb

CheckBoxList

cbl

RadioButton

rab

RadioButtonList

rbl

Image

Img

ImageMap

imp

Table

tab

BulletedList

bul

HiddenField

hif

Literal

lit

Calendar

cad

AdRotator

ada

FileUpload

fup

Wizard

wiz

Xml

xxl

MultiView

muv

Panel

pnl

PlaceHolder

plh

View

view

Substitution

sut

Localize

lol

GridView

grv

DataList

dtl

DetailsView

dlv

FormView

frv

Repeater

rep

SqlDataSource

sql

AccessDataSource

ads

ObjectDataSource

ods

XmlDataSource

xds

SiteMapDataSource

smds

ReportViewer

rev

RequiredFieldValidator

rfv

RangeValidator

 

你可能感兴趣的:(asp.net)