Answers to Exercises

Chapter 1

  1. The difference between HTML and HTTP is that HTML is a markup language used to define content that is transmitted over the Internet, whereas HTTP is the transfer protocol that manages the transmittal of HTML over the Internet.
  2. ViewState is how ASP.NET Web Forms manages state even though HTTP is, by definition, stateless. This is important because it enables your website to determine when something changes, and allows your application to support many built-in events.
  3. The three architectural components that make up ASP.NET MVC are models, views, and controllers. A view is what the users see in the browser. Models represent the data that is displayed within the view. The controller is the part that manages the interaction between the two—it handles getting the model and making it available to the view.
  4. Microsoft Visual Studio is the primary integrated development environment (IDE) used to create ASP.NET sites and applications. We are using this product throughout the book because it is the de facto standard for Microsoft Windows–based software development.

Chapter 2

  1. The two approaches to building a web-based application are Web Site and Web Application. A web site does not pre-compile the source code, but instead deploys the source code to the server. When an application is started, there is JIT compilation. A Web Application is compiled and then copied to the server where it is run. Web Forms can be either approach, but MVC applications are ...

Get Beginning ASP.NET for Visual Studio 2015 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.