08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

280<br />

CHAPTER 12 ■ <strong>AJAX</strong> EXTENSIONS FOR <strong>ASP</strong>.<strong>NET</strong><br />

to carefully tweak exactly which parts of your page you’ll want to have updated when you<br />

do a partial page refresh.<br />

With these <strong>and</strong> many more potential scenarios in mind, <strong>ASP</strong>.<strong>NET</strong> <strong>AJAX</strong> has been<br />

designed to provide controls, script libraries, <strong>and</strong> technology support to make building<br />

RIA applications as easy for the developer as possible.<br />

The functionality of <strong>ASP</strong>.<strong>NET</strong> <strong>AJAX</strong> has been broken down into two paradigms: server,<br />

containing the suite of <strong>ASP</strong>.<strong>NET</strong> controls to h<strong>and</strong>le things such as partial refreshes,<br />

update progress, timers, <strong>and</strong> server-side integration with other applications across web<br />

services or other communications profiles; <strong>and</strong> client, which contains JavaScript classes<br />

to support value-added functionality, such as a browser-independent layer, extensions to<br />

support object orientation, <strong>and</strong> more.<br />

You can see the basic <strong>ASP</strong>.<strong>NET</strong> <strong>AJAX</strong> server <strong>and</strong> client architectures in Figure 12-1.<br />

Figure 12-1. <strong>ASP</strong>.<strong>NET</strong> <strong>AJAX</strong> client <strong>and</strong> server architectures<br />

The <strong>ASP</strong>.<strong>NET</strong> infrastructure provides many application services to server applications,<br />

including components that manage the UI <strong>and</strong> flow of an application (see Part 1 of<br />

this book for more details), h<strong>and</strong>ling serialization, validation, <strong>and</strong> extensibility, among<br />

other things. <strong>ASP</strong>.<strong>NET</strong> 2.0 also supports services such as database-backed user profiles<br />

<strong>and</strong> security <strong>and</strong> authentication methodologies. When using <strong>ASP</strong>.<strong>NET</strong> <strong>AJAX</strong> extensions,<br />

the whole <strong>ASP</strong>.<strong>NET</strong> framework is available for you to use, providing many value-added<br />

services, saving you time <strong>and</strong> effort in development.<br />

<strong>ASP</strong>.<strong>NET</strong> also supports <strong>and</strong> provides web services that can be called from a client<br />

script that can work with the resources that <strong>ASP</strong>.<strong>NET</strong> provides. For example, you can use<br />

client scripts to help protect resources through forms authentication, or you can access<br />

user profiles, allowing user-specific settings to be stored on the server.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!