Tuesday, December 27, 2016

Choosing between Web Site Projects and Web Application Projects

Choosing between Web Site Projects and Web Application Projects

          Because you have two options to choose from, you may be wondering which project type you should pick. In general, the Web Site Project is a bit easier to work with. Because it’s just a folder, it’s easier to copy the files to a different location, such as another development workstation or a production server. Also, changes to the code files are picked up by the web server and applied automatically without a formal deployment process. The Web Application Project, on the other hand, works better if you work with a team of developers on the same site, because it dictates a more formal development and deployment process and has better support for working with Source Control versioning systems, such as Microsoft’s Team Foundation Server. In addition, it supports other technologies such as ASP.NET MVC and Web API.
This book uses the Web Site Project model because it’s easier to work with if you’re new to ASP.NET. However, you’ll find that sites built using the Web Application Project model have a lot in common with Web Site Projects, which means you can use the knowledge you gain from this book to build sites with the Web Application Project model as well. You must use the Web Site Project
model if you want to follow along with this book. When not referring to a specific project type, I’ll use the terms website and web application interchangeably throughout this book when referring to websites in general. Now that you know about the different project models, the next thing to consider is the different website templates and their options. Choosing the Right Website Template The New Web Site dialog box in VS contains different website templates, each one serving a distinct purpose.
              Figure 2-1 shows the New Web Site dialog box in VS. You can open this dialog box by choosing File ➪ New Web Site or File ➪ New ➪ Web Site, depending on your version of VS. If your dialog box doesn’t look like Figure 2-1, make sure you chose File ➪ New Web Site and not File ➪ New Project. In the left-hand section you can choose between Visual Basic and Visual C# as the programming language for your site. The section in the middle shows the ASP.NET website templates that are installed by default. Each of them is discussed in the next section. When you have created your own templates or have templates installed from other parties, they show up in this area as well.


         Above the list of templates, you can select the .NET Framework version you want to use. For all exercises in this article, make sure you always choose .NET Framework 4.5.1. The ASP.NET Empty Web Site template is used throughout this articles for the Planet Wrox website. The others are described briefly in the following sections so you know how they can be used. The exact list of installed templates on your system depends on the version of Visual Studio and the installed components. Don’t worry if you have other templates as long as you have the ASP.NET Web Forms Site and the ASP.NET Empty Web Site items.


ASP.NET Web Forms Site in VS 2013

No comments:

Post a Comment

We are happy for leaving comments,we will don't let you bite stay with us

Popular Posts

Contact Form

Name

Email *

Message *