Appendix C. Answers to Quizzes and Exercises

Chapter 1: Getting Started

Answers to Quiz Questions

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

  2. The two views are Design view, which shows you the appearance of your page, and Source view, which shows you the markup.

  3. The settings that are specific to each control are called properties, and you can view them in the Properties window of the IDE.

  4. The controls are kept in the Toolbox, which is on the left side of the IDE by default.

  5. There are three different ways to run your program: click Debug → Start Debugging, press F5, or click the Start Debugging icon on the toolbar.

  6. The Click event.

  7. The code for the event handler is located in the code-behind file.

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

  9. Use the Label control’s Text property to set the content of the label. You’ll see that many controls have a Text property that you can set.

  10. The web page is kept in a file with the .aspx extension.

Answers to Exercises

Exercise 1-1. There is no “right” or “wrong” answer to this exercise; you’re just playing around with the properties to get a feel for the range of options you have. If the changes you’re making aren’t showing up properly, make sure you’ve selected the label control; you can tell because “Label1” will be displayed at the top of the properties page. If ...

Get Learning ASP.NET 2.0 with AJAX 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.