對於程式設計師來說,命名原則是很重要的,
並且在更多人同時開發一個程式時,就更必須要遵守該原則
才能有效率的開發程式
| Label | lbl | TextBox | txt |
| Button | btn | LinkButton | lnkbtn |
| ImageButton | imgbtn | ListBox | lst |
| DropDownList | ddl | DataGrid | dg |
| DataList | dl | CheckBox | chk |
| CheckBoxList | chklst | RadioButton | rdo |
| RadioButtonList | rdolst | Image | img |
| Panel | pnl | Calender | cal |
| AdRotator | ar | Table | tbl |
| RequiredFieldValidator | rfv | CompareValidator | cv |
| RangeValidator | rv | RangeExpressionValidator | rev |
| ValidatorSummary | vs | CrystalReportViewer | rptvew |
| ComboBox | cbo | DataGridView | dgv |
| DataGridView 的 Column | col | GroupBox | grp |
| ImageList | il | ListView | lv |
| ListView 的 ColumnHeader | ch | MenuStrip | ms |
| ToolStripMenuItem | tsmi | PictureBox | pic |
| StatusStrip | ss | StatusLable | slbl |
| TabControl | tab | TabPage | tp |
| Timer | tmr | ToolStrip | ts |
| ToolStripLabel | tslbl | ToolStripButton | tsbtn |
| ToolStripDropDownButton | tsddb | DomainUpDown | dud |
| TreeView | tv 或 tvw | WebBrowser | wb |
| ObjectDataSource | ods | FileUpload | ful |
| HiddenField | hf | GridView | gv |
| PagedDataSource | pds | Repeater | rpt |
其實現在已經不建議使用這種匈牙利命名法囉
回覆刪除http://goo.gl/jWIBu
尤其是在物件導向程式設計裡,會用這一套命名規則的,大多還是非 OO 的開發人員.
哦哦,原來如此
回覆刪除目前大大有較建議的命名原則嗎?
(長知識長知識 @@)