Monday, March 26, 2012

What is the best method to write code

what is the best method to write code to get best speed
1- using compiled dll files
2 - using code-behind ( aspx.vb)
3 - simply using code in (aspx file)If referring to Vb code in aspx pages' code-behind (aspx.vb), neither.

A dll can be used to lump common functions together. Real gains are made by using static methods that do not require instance instantiation and allocation.
Its all the same. Any code places in either your ASPX or ASPX.cs/ASPX.vb file will be compiled into a dll anyway inside your bin/ directory :)

0 comments:

Post a Comment