1. Introduction
2. Coding Guidelines
2.1 Bracing
2.2 Single line statements
2.3 Commenting
2.3.1 Copyright notice
2.3.2 Documentation Comments
2.3.3 Web Service Comments
2.3.4 Custom Server Control and ASP.NET AJAX Control Comments
2.3.5 Comment Style
2.4 Spacing
2.5 Naming
2.6 Namespaces
2.6.1 Assembly Namespaces
2.6.2 ASP.NET Website Namespaces
2.6.3 ASP.NET Web Service Namespaces
2.7 File Organisation
2.7.1 File Organisation
2.8 ASP.NET ID Prefixes
2.9 Data Access
2.10 Data Access
2.10.1 Cache Your Elements
2.10.2 Prefer [] over item()
2.10.3 Avoid the use of ‘eval’
2.10.4 String manipulation
2.10.5 JavaScript compression
3. SQL Guidelines
3.1 Parameters and variables
3.2 Control statements
3.3 Naming
3.4 Paging
3.5 Exceptions and business logic
2. Coding Guidelines
2.1 Bracing
2.2 Single line statements
2.3 Commenting
2.3.1 Copyright notice
2.3.2 Documentation Comments
2.3.3 Web Service Comments
2.3.4 Custom Server Control and ASP.NET AJAX Control Comments
2.3.5 Comment Style
2.4 Spacing
2.5 Naming
2.6 Namespaces
2.6.1 Assembly Namespaces
2.6.2 ASP.NET Website Namespaces
2.6.3 ASP.NET Web Service Namespaces
2.7 File Organisation
2.7.1 File Organisation
2.8 ASP.NET ID Prefixes
2.9 Data Access
2.10 Data Access
2.10.1 Cache Your Elements
2.10.2 Prefer [] over item()
2.10.3 Avoid the use of ‘eval’
2.10.4 String manipulation
2.10.5 JavaScript compression
3. SQL Guidelines
3.1 Parameters and variables
3.2 Control statements
3.3 Naming
3.4 Paging
3.5 Exceptions and business logic
Introduction
This document contains the recommended guidelines for C#.NET and SQL Server development projects.