Sunday, June 30, 2013

Web Application VS Web Site in Visual Studio

What is the difference between Web Application and Web Site in Visual Studio?

Web Application VS Web Site
In Visual Studio we can create Web Application projects or Web Site projects by choosing New Project or New Web Site. Each type of project has advantages and disadvantages. It is much necessary to select the appropriate project type. Because, it is not practical to convert one project type to the other.


Web Application
Web Site
It creates a Visual Studio project file (.csproj or .vbproj) that store the information of all the files in a project.
It does not create any Visual Studio project file (.csproj or .vbproj). All the files in a project stay in folder structure.
Every page has .aspx, .aspx.cs, .aspx.designer.cs files.
Every page has .aspx, .aspx.cs files.
We can create MVC application.
We cannot create MVC application.
We cannot edit individual files after deployment without recompiling.
We can.
Creates pre-compiled pages.
Creates code behind pages that are compiled  when page is requested
If we make a single change in one page we need to re-compile the entire sites. We need to deploy the entire sites.
If we make any change we don’t need to re-compile entire sites. We need not to deploy the entire sites. We will only upload the changes pages.
It does not support multi programming languages.
It supports multi programming languages.
All the files are compiled into a single assembly file.
All the files are not compiled into a single assembly file. When we publish the site every time a dll file is created for each file and its name is auto generated.




For more please visit cybarlab.com