{"id":211,"date":"2014-08-22T11:25:47","date_gmt":"2014-08-22T11:25:47","guid":{"rendered":"http:\/\/mairwa.com\/wordpress\/?p=211"},"modified":"2014-08-22T11:25:47","modified_gmt":"2014-08-22T11:25:47","slug":"web-portalweb-siteweb-application-project-difference","status":"publish","type":"post","link":"http:\/\/mairwa.com\/wordpress\/?p=211","title":{"rendered":"Web portal,web site,web application (project) difference"},"content":{"rendered":"<p>A <b>web portal<\/b> is most often one specially-designed <a title=\"Web page\" href=\"http:\/\/en.wikipedia.org\/wiki\/Web_page\">Web page<\/a> which brings information together from diverse sources in a uniform way. Usually, each information source gets its dedicated area on the page for displaying information (a <a title=\"Portlet\" href=\"http:\/\/en.wikipedia.org\/wiki\/Portlet\">portlet<\/a>);<\/p>\n<p>Portals are becoming a very prevalent and efficient method of communicating information to individuals. There are primarily two types of portals: public and private. Public portals, such as iGoogle provide users with e-mail, weather, news, games, etc. In contrast, private portals serve the needs of an organization and act as the primary source of information and services that are used in operations. Portals are commonly divided into several distinct regions called channels, which, in turn provide information or a service. A channel in a public portal such as iGoogle would provide weather or stock prices, while a channel in a private portal may provide information such as health benefits, weekly sales goals, or budget information.<\/p>\n<p>A <b>website<\/b>, also written as <b>web site<\/b>,or simply <b>site<\/b>, is a set of related <a title=\"Web page\" href=\"http:\/\/en.wikipedia.org\/wiki\/Web_page\">web pages<\/a> typically served from a single <a title=\"Fully qualified domain name\" href=\"http:\/\/en.wikipedia.org\/wiki\/Fully_qualified_domain_name\">web domain<\/a>. A website is hosted on at least one <a title=\"Web server\" href=\"http:\/\/en.wikipedia.org\/wiki\/Web_server\">web server<\/a>, accessible via a network such as the <a title=\"Internet\" href=\"http:\/\/en.wikipedia.org\/wiki\/Internet\">Internet<\/a> or a private <a title=\"Local area network\" href=\"http:\/\/en.wikipedia.org\/wiki\/Local_area_network\">local area network<\/a> through an Internet address known as a <a title=\"Uniform resource locator\" href=\"http:\/\/en.wikipedia.org\/wiki\/Uniform_resource_locator\">Uniform resource locator<\/a>. All publicly accessible websites collectively constitute the <a title=\"World Wide Web\" href=\"http:\/\/en.wikipedia.org\/wiki\/World_Wide_Web\">World Wide Web<\/a>.<\/p>\n<p><b>Scenarios in which web application projects are the preferred choice include the following:<\/b><\/p>\n<p>1) Use the Edit and Continue feature of the Visual Studio debugger.<\/p>\n<p>2) To run unit tests on code that is in the class files that are associated with ASP.NET pages.<\/p>\n<p>3) To refer to the classes that are associated with pages and user controls from standalone classes.<\/p>\n<p>4) To establish project dependencies between multiple web projects.<\/p>\n<p>5) Compiler to create a single assembly for the entire site.<\/p>\n<p>6) To control over the assembly name and version number that is generated for the site.<\/p>\n<p>7) To use MSBuild or Team Build to compile the project. For example, we might want to add prebuild and postbuild steps.<\/p>\n<p>8) To avoid putting source code on a production server.<\/p>\n<p>&nbsp;<\/p>\n<p><b>Scenarios in which Web site projects are the preferred choice include the following:<\/b><\/p>\n<p>1) To include both C# and Visual Basic code in a single web project. (By default, a web application is compiled based on language settings in the project file. Exceptions can be made, but it is relatively difficult.)<\/p>\n<p>2) To open the production site in Visual Studio and update it in real time by using FTP.<\/p>\n<p>3) We do not want to have to explicitly compile the project in order to deploy it.<\/p>\n<p>4) If we do precompile the site, you want the compiler to create multiple assemblies for the site, which can include one assembly per page or user control, or one or more assemblies per folder.<\/p>\n<p>5) To be able to update individual files in production by just copying new versions to the production server, or by editing the files directly on the production server.<\/p>\n<p>6) precompile the site, we want to be able to update individual ASP.NET web pages (.aspx files) without having to recompile the entire site.<\/p>\n<p>7) To keep source code on the production server because it can serve as an additional backup copy.<\/p>\n<p><strong>Difference between Web application and web site project.<\/strong><\/p>\n<table border=\"0\" cellpadding=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td><b>Area<\/b><\/td>\n<td><b>Web application projects<\/b><\/td>\n<td><b>Web site projects<\/b><\/td>\n<\/tr>\n<tr>\n<td>Project file structure<\/td>\n<td>A Visual Studio project \u00a0 file (.csproj or .vbproj) stores information about the project, such as the \u00a0 list of files that are included in the project, and any project-to-project \u00a0 references.<\/td>\n<td>There is no project file \u00a0 (.csproj or .vbproj). All the files in a folder structure are automatically \u00a0 included in the site.<\/td>\n<\/tr>\n<tr>\n<td>Compilation<\/td>\n<td>You explicitly compile the \u00a0 source code on the computer that is used for development or source control.By default, compilation of \u00a0 code files (excluding .aspx and .ascx files) produces a single assembly.<\/td>\n<td>The source code is \u00a0 typically compiled dynamically (automatically) by ASP.NET on the server the \u00a0 first time a request is received after the site has been installed or \u00a0 updated.You can precompile the site \u00a0 (compile in advance on a development computer or on the server).By default, compilation \u00a0 produces multiple assemblies.<\/td>\n<\/tr>\n<tr>\n<td>Namespaces<\/td>\n<td>Explicit namespaces are \u00a0 added to pages, controls, and classes by default.<\/td>\n<td>Explicit namespaces are not \u00a0 added to pages, controls, and classes by default, but you can add them \u00a0 manually.<\/td>\n<\/tr>\n<tr>\n<td>Deployment<\/td>\n<td>You copy the assembly to a<br \/>\nserver. The assembly is produced by compiling the application.Visual Studio provides \u00a0 tools that integrate with Web Deploy (the IIS web deployment tool) to \u00a0 automate many deployment tasks.<\/td>\n<td>You copy the application \u00a0 source files to a computer that has IIS installed on it.If you precompile the site \u00a0 on a development computer, you copy the assemblies produced by compilation to \u00a0 the IIS server.Visual Studio provides \u00a0 tools that integrate with Web Deploy (the IIS web deployment tool) to \u00a0 automate many deployment tasks.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">A web portal is most often one specially-designed Web page which brings information together from diverse sources in a uniform way. Usually, each information source gets its dedicated area on the page for displaying information (a portlet); Portals are becoming a very prevalent and efficient method of communicating information to individuals. There are primarily two types of portals: public and&hellip; <a href=\"http:\/\/mairwa.com\/wordpress\/?p=211\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-211","post","type-post","status-publish","format-standard","hentry","category-c-vb","xfolkentry"],"_links":{"self":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=211"}],"version-history":[{"count":0,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/211\/revisions"}],"wp:attachment":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}