Appendix A. Exercise Answers

CHAPTER 1

Exercise 1 Solution

The markup of a page in VWD 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

XHTML and HTML are related because XHTML is a version of HTML rewritten with XML rules. While HTML is much more relaxed, XHTML forces the programmer to write code that conforms to XML rules, such as correct capitalization, closed tags, and attributes that are enclosed in quotes.

Exercise 3 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 give it 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 4 Solution

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

  • Resetting the Window layout by choosing Window

    Exercise 4 Solution
  • Resetting the Toolbox by right-clicking it and choosing Reset Toolbox.

  • Resetting all settings of VWD using Tools

    Exercise 4 Solution

Exercise 5 Solution ...

Get Beginning ASP.NET 4: in C# and VB 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.