Appendix D. Answers to Quizzes and Exercises
Chapter 1: Getting Started
Answers to Quiz Questions
You can create a new web site by selecting File → New Web Site, or by clicking the “Create: Web Site” link on the Start page.
The three views are Design view, which shows you the appearance of your page, Source view, which shows you the markup, and Split view, which shows both.
The settings that are specific to each control are called properties, and you can view them in the Properties window of the IDE.
The controls are kept in the Toolbox, which is on the left side of the IDE by default.
There are three different ways to run your program with debugging: click Debug → Start Debugging, press F5, or click the Start Debugging icon on the toolbar.
The code for the event handler is located in the code-behind file.
You can get to the code-behind file by selecting the file in the Solution Explorer, or by double-clicking the control whose default event you want to set up.
Textproperty to set the content of the label. You’ll see that many controls have a
Textproperty that you can set.
When you click the button in Hello World, you raise the
Clickevent. The code for the event handler is evaluated at the server, which redraws the page and sends it back to the browser, causing a noticeable flicker. In Chapter 2, you’ll see how to avoid that.
Answer to Exercise
Exercise 1-1. There is no “right” or “wrong” answer to this exercise; you’re just playing around with the ...