Following are the Authentication Modes.
- None
- Windows
- Forms
- Passport
7. Validate all Input received from the Users.
Validate all Input received from the users at client side to avoid the server round trip.
8. Use Finally Method to kill resources.
Always use the finally block to kill resources like closing database connection, closing files etc.
9. Always use the String builder to concatenate string
The memory representation of string is an array of characters, So on re-assigning the new array of Char is formed & the start address is changed. Thus keeping the old string in memory for garbage collector to be disposed. Hence application is slow down. Always use the string builder for concatenating string.
10. Enable the web gardening for multiprocessors computers:
The ASP.NET process model helps enable scalability on multiprocessor machines by distributing the work to several processes, one for each CPU, each with processor affinity set to its CPU. The technique is called Web gardening, and can dramatically improve the performance of some applications
11. Set Enlist="false" in connection string:
True indicates that the SQL Server connection Pooler automatically enlists the connection in the creation thread's current transaction context. That's why set enlist = false in connection string.
12. Avoid recursive functions / nested loops
13. Always set option strict to "on"
14. Try to avoid Throwing Exceptions.