Previous Section  < Day Day Up >  Next Section

Chapter 16

A1:

GET and PUT are used to transfer data from a client to a server. PUT is default for ASP.NET.

A2:

  1. True.

  2. True.

  3. False. ASP.NET returns HTML, therefore a client does not require the .NET runtime.

  4. True.

  5. True.

A3:

The ListItem class contains a collection for List controls.

A4:

If the TextBox.AutoPostBack property is set to true, the event handler is called immediately on the server; otherwise, it waits until the next round trip to the server occurs.

A5:

The .Master property allows access to the MasterPage object.

A6:

The DataSource property must be set to the data source, and DataBind must be executed to load the data into the control.

A7:

  1. False. You cannot bind directly to a DataAdapter.

  2. True. A control can bind to a DataReader.

  3. False. It is populated when DataBind is executed.

  4. True. A DataSet or data source control can bind to a control.

A8:

Use a validating control to manage input to a text box.

A9:

The @Register directive is required to specify a custom control.

A10:

The HtmlTextWriter class emits HTML that renders a control.

A11:

The controls in a composite control render themselves and offer the standard properties to work with.

    Previous Section  < Day Day Up >  Next Section