try { statements; }
catch (ExceptionClass e) { statements; }
finally { statements; }
using (object) { statements; }
控件縮寫 + 英文描述 (首字母大寫),如 txtUserName、btnLogin。
| 控件 | 縮寫 | 控件 | 縮寫 |
|---|---|---|---|
| Label | lbl | TextBox | txt |
| Button | btn | LinkButton | lnkbtn |
| ImageButton | imgbtn | DropDownList | ddl |
| ListBox | lst | DataGrid | dg |
| DataList | dl | CheckBox | chk |
| CheckBoxList | chkls | RadioButton | rdo |
| RadioButtonList | rdolst | Image | img |
| Panel | pnl | Calendar | cld |
| AdRotator | ar | Table | tbl |
| RequiredFieldValidator | rfv | CompareValidator | cv |
| RangeValidator | rv | RegularExpressionValidator | rev |
| ValidationSummary | vs | CrystalReportViewer | rptvew |