Section A.19. Chapter 19: Programming ASP.NET Applications


A.19. Chapter 19: Programming ASP.NET Applications

A.19.1. Quiz



Solution to Question 191 .

System.Web and System.Web.UI .



Solution to Question 192 .

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



Solution to Question 193 .

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



Solution to Question 194 .

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

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



Solution to Question 196 .

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

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

Every Server Control must have this property:

 runat="Server" 



Solution to Question 199 .

The DataSource control.



Solution to Question 1910 .

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



Solution to Question 1911 .

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

A.19.2. Exercises

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



Learning C# 2005
Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition)
ISBN: 0596102097
EAN: 2147483647
Year: 2004
Pages: 250

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net