Check out the developer documentation.  If that doesn't help and you have a separate class library project, simply add that project to the solution and make a reference to the project in your website.  The separate project will be compiled and the dll will be placed into the bin directory.