SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 55 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

Adding a calendar to the default form
If you change to source view, you will see very straightforward markup, and there
isn??™t a whole lot of it??”certainly not enough to render the calendar, much less the interactivity
of selecting dates and paging backward and forward through the months. You can
see the markup in Figure 2-2.
CHAPTER 2 ?–  TAKING AJAX TO THE NEXT LEVEL 20
Figure 2-2. Inspecting the markup for the calendar page
The implementation of the calendar is encapsulated within the asp:Calender tag:

Visual Studio invokes code within the Calendar server control class to create the
visual representation in the designer view of the integrated development environment
(IDE). Similarly, at runtime, the ASP.NET engine detects the tag and
invokes code within the Calendar server control class to generate the HTML necessary to
render the calendar in the browser and the JavaScript that provides its functionality. Figure
2-3 shows the page being rendered in Internet Explorer.
CHAPTER 2 ?–  TAKING AJAX TO THE NEXT LEVEL 21
Figure 2-3.


Pages:
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67