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 56 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

Viewing the calendar page in a browser
By clicking the Browser??™s View ??¤ Source menu item, you can inspect the combination
of HTML and JavaScript that was generated by the server control (see Figure 2-4).
You can see that it is vastly different from what was shown at design time in Figure 2-2.
The tag has been replaced by a
tag that encapsulates the HTML.
This lays out the calendar as a table??”showing the days, dates, and month; and the
JavaScript that handles the links to move forward and backward by month.
CHAPTER 2 ?–  TAKING AJAX TO THE NEXT LEVEL 22
Figure 2-4.Viewing the client-side code behind the calendar page
This is an example of the power of server-side controls, and it is with controls such
as these that you can deliver AJAX functionality to the browser without overly complex
hand-coding, as demonstrated in Chapter 1. You will also be able to take advantage of
using a professional IDE so that you can debug and manage your AJAX pages as easily as
standard web forms or Windows applications.
These two concepts have been the premier design goals of ASP.


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