O'Reilly logo

Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars

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

Appendix AExercise Answers

CHAPTER 1

Exercise 1 Solution

The markup of a page in Visual Studio contains the raw and unprocessed source for the page, including the HTML, ASP.NET Server Controls, and programming code. The web server then processes the page and sends out the final HTML to the browser. In the browser this HTML is then used to render the user interface.

Exercise 2 Solution

The easiest way to store HTML fragments that you use often is to select them in the Document Window and then drag them to a free space on the Toolbox. When the item is added, you can rename it to a more meaningful name. Now you can simply double-click an item or drag it from the Toolbox into your page whenever you need it.

Exercise 3 Solution

You have a number of ways to reset part of the customization changes you may have made, including:

  • Resetting the window layout by choosing Window ⇒ Reset Window Layout.
  • Resetting the Toolbox by right-clicking it and choosing Reset Toolbox.
  • Resetting all settings of Visual Studio using Tools ⇒ Settings ⇒ Import and Export Settings or Tools ⇒ Import and Export Settings, depending on your version of Visual Studio.

Exercise 4 Solution

To change the property of a control on a page, you can click the control in Design or Markup View and then use the Properties Grid (which you can bring up by pressing F4) to change the value of the property. Alternatively, you can change the property directly in Markup View.

CHAPTER 2

Exercise 1 Solution

A number of ...

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