Which one is faster? Both are the same because both are compiled but in case you used a class (not in a dll) and publish the site,it's code
and other pages's code are all compiled into multible dlls. So from performance perspective you will never notice a difference,but from other perspectives..there are many advanteges of using a separate dll for your class:
1)Re-usability:If you intend to use a specific code in multible places/projects,a separate dll is the best choice
2)Maintainability: If you want to fix a bug/update code inside your classes ONLY(you didn't make changes that may effect any page's code),dll is the best choice since all you have to do is to replace the dll and that's it.Imagine if you didn't make a dll for your class,you will have to publish the whole website..;)
I only mentioned two of the most important things,there are also security and other advantages..
Best Regards,
Ala'a Alnajjar
----------------------------------------------------
Please remember to click “Mark as Answer” on the post(s) that help(s) you even if they were for the same person.
Also remember to close the thread by selecting “Resolved”,you will find it in your first post.
Convert C# to VB.net and visa versusMy Webblog