
108
|
Chapter 5: ASP.NET Server Controls
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
In addition to having the mobile controls built into Version 1.1 of
the .NET Framework, Visual Studio .NET 2003 provides a new
Mobile Web Application project template, which simplifies mobile
development by automating helpful settings in web.config, and
allowing drag-and-drop development of ASP.NET applications for
mobile devices.
Handling Control Events
One of the most convenient aspects of the new ASP.NET Web Forms model is
that it brings event-driven programming, popularized by Visual Basic, to the web
world without all the kludginess of the late unlamented Visual Basic WebClasses.
As explained in Chapter 3, ASP.NET has a number of built-in events at the page
level for which you can write event handlers to execute code.
Moreover, most server controls expose one or more events for which you can
write handlers. Table 5-8 shows a list of common events and the controls that
support them. These events and controls are in addition to the standard events,
Figure 5-11. Rendering of activated PhoneCall control on Openwave Phone Simulator
(image courtesy Openwave Systems Inc.)