User879079649 posted
Using publish method you will have only the compiled code needed to deploy your web project, it is a bad idea to just copy and deploy your source code. When you publish an ASP.NET Web application project, Visual Studio or Visual Web
Developer Express compiles the Web application files into a single assembly and then copies the compiled assembly to a specified location.You can publish the Web application to a local or shared folder, to an FTP site, or to a Web site that
you access by using a URL.
When you use visual studio you can select the Publishing Method,
Have a look at the great article found here,
http://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx