Beginning ASP.NET MVC 4 - PDF

Скачать полную версию книги "Beginning ASP.NET MVC 4 - PDF"

Beginning ASP.NET MVC 4 by Jose Rolando Guay Paz

With the introduction of ASP.NET MVC in 2009, Microsoft offered developers a new approach to building web applications based on the Microsoft stack. By combining the power and maturity of ASP.NET and the .NET Framework with the advantages of the MVC pattern, ASP.NET MVC offers web application developers important features, such as testability, full control over the generated HTML, and great support for large teams working on the same project by separating the application into the model, the view, and the controller.

The purpose of this book is to introduce you to the latest version of ASP.NET MVC, version 4. To ground the book in the real world of developing web applications, the concepts presented in all the chapters are examined in the context of a sample web application.

The book is basically divided into three parts. The first part, comprising Chapters 1 through 3, starts with a brief introduction to ASP.NET and discusses where MVC fits into the whole ASP.NET framework. Chapter 2 describes the software requirements and the different options for installing ASP.NET MVC 4. Chapter 3 explains the sample application you are going to build and the tools that you need to build it, and then steps you through the actual creation and configuration of the sample application.

The second part, Chapters 4 through 6, explains the three core components of the MVC pattern. Chapter 4 examines controllers, including how controllers handle user requests through action methods and how results are produced. Controllers is the first concept as that’s where it all beings, handling a request from the user. Chapter 5 explains views and how HTML is generated. It shows how to process server-side code with the new Razor view engine and how to produce appropriate output for desktop and mobile devices. Generating a response to the user is the second concept as is normally what happens after the request is processed. Finally, Chapter 6 examines models. It defines the domain model of the application by showing how to create the data model using Entity Framework and the business models using C# classes. It also examines what view models are and how to use them effectively to produce the final HTML in the browser.

The third part, Chapters 7–12, examines different aspects of the ASP.NET MVC framework, such as data validation (Chapter 7), security (Chapter 9), and routing (Chapter 10). Chapter 8 shows you how to work with client-side code using jQuery and Ajax, and Chapter 11 demonstrates how to test the different aspects of your application using unit testing. Finally, Chapter 12 explains how to deploy the application to servers you control and to Windows Azure. I hope that this book gives you a great foundation upon which to start building web applications using ASP.NET MVC 4.

We will be using Visual Studio 2012 for the examples in the book. You can use any of the paid versions (Professional, Premium or Ultimate) or the fee Express version. Also, some of the images you will see are based on modifications made to Visual Studio in update 2, so you will need to install that update as well. You can download Visual Studio 2012 and update 2 from



  • CC BY-NC-SA 3.0 PH
  • Ссылка автора не требуется

Поделиться в сетях

Информация о книге:

Комментарии (0) Добавить

Кликните на изображение чтобы обновить код, если он неразборчив
Комментариев пока нет. Ваш комментарий будет первым!