C # control naming convention summary (ultra-detailed)

Source: Internet
Author: User

Type Prefix Example
Adrotator Adrt AdrtTopAd
BulletedList Blst BlstCity
Button Btn BtnSubmit
Calendar Cal CalMettingDates
CheckBox Chk ChkBlue
CheckBoxList Chkl Chklkavcolors
DropDownList Drop DropCountries
FileUpLoad Fup FupImage
HiddenField Hsf- 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

Type Prefix Example
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

Type Prefix Example
CompareValidator Valc ValcValidAge
CustomValidator Valx ValxDBCheck
RangeValidator Valg ValgAge
RegularExpressionValidator Vale ValeEmail
RequiredFieldValidator Valr ValrFirstName
ValidationSummary Vals ValsFormErrors


Navigation Control
Type Prefix Example
Menu Mnu MnuUser1
SiteMapPath Smp SmpSite1
TreeView Trvw TrvwMenu


Login Control
Type Prefix Example
ChangePassword Cpwd CpwdUser1
CreateUserWizard Cuw CuwLogin
Login Log LogCenter
LoginName Logn LognUser
LoginStatus Logs LogsUser
LoginView Logv LogvUser
PasswordRecovery Pwdr PwdrUser


WebParts Control
Type Prefix Example
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.