O'Reilly logo

Beginning ASP.NET for Visual Studio 2015 by William Penberthy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required