Coding Standards and Guidelines ASP.NET
1. Prefix user control names with “uc”
2. The rest of the user control name should be in Pascal Casing (Ex. ucMyUserControl)
3. Do not use session variables throughout
the code. Use session variables only within the classes and expose
methods to access the value stored in the session variables.
4. Do not store large objects in session, it may consume lot of server memory depending on the number of users.
5. Always use style sheet to control the look and feel of the pages.
6. Categories data and store it in
predefine folder depending on its working.(e.g.- store all images,
sound, video files in media or image folder)
Control Name | Abbreviations/ Prefixes | Remarks |
Form | wf,frm | |
Textbox | Txt | |
TextArea | Txa | |
Checkbox | Chk | |
Check Box List | Chklst | chklstCurrency |
Label | Lbl | |
Hidden Elements | Hdn | |
Combo Box / Drop Down | Cbo | |
Button | cmd,btn | |
Submit Button | smt | |
Reset Button | rst | |
Link Button | lbtn | lbtnSave |
Image Button | ibtn | ibtnExit |
Password Field | pwd | |
Radio Button | opt | |
Radio Button List | optlst | optlstSelect |
List Box | lst | |
Frame | fra | |
Image | img | |
Pointer | ptr | |
Panel | pan,pnl | pnlBackground |
Place Holder | plh | |
Calendar | cal | |
Ad Rotator | adr | |
Table | tbl | tblAppointments |
Range Validator | rav,rgv | |
Regular Expression Validator | rev | |
Regular Field Validator | rfv | |
Compare Validator | cmv | |
Custom Validator | cuv,csv | |
Validation Summary | vsm | |
XML | Xml | XmlDataFile |
File Field | Fle | |
Literal | Lit | |
Arraylist | Al | |
Hyperlink | hyp | |
DataGrid | dtg,dgr | |
DataList | dtl | |
Repeater | rpt | rptReport |
Flow Layout Panel | flp | |
Grid Layout Panel | glp | |
Horizontal Rule | hr | |
Crystal Report Viewer | crv,crvr | crvReport |
0 comments:
Post a Comment