Chapter 19: Programming ASP.NET Applications

Quiz

Solution to Question 19–1.

System.Web and System.Web.UI.

Solution to Question 19–2.

On the server (though occasionally some Web Controls will write script to run on the client).

Solution to Question 19–3.

Making a non-postback event into a postback event is accomplished simply by setting the AutoPostBack property to true.

Solution to Question 19–4.

View state is the ability of ASP.NET pages to store the state of their controls during a post-back; the net effect is that the programmer does not have to write code to maintain the state of controls when a page is posted back to the server.

Solution to Question 19–5.

You must update the Page directive to ensure that the Inherits property is set to the new class name.

Solution to Question 19–6.

Click “Add a new web.config file with debugging enabled,” and Visual Studio 2005 will create a web.config file for you, or alternatively, you can create the file yourself (by hand) and then add it to the project.

Solution to Question 19–7.

The three ways are as follows:

  • Drag them from the toolbox.

  • Write the code in the HTML markup window.

  • Add them programmatically.

Solution to Question 19–8.

Every Server Control must have this property:

runat="Server"
Solution to Question 19–9.

The DataSource control.

Solution to Question 19–10.

A series of <input> elements of type “radio” with associated <label> controls, all contained within a <table>.

Solution to Question 19–11.

Test for the IsPostBack property of the page. If true, the page has been posted back.

Exercises

For the answers to these exercises, please download the ASP.NET project files that are available on this book’s web site.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset