Académique Documents
Professionnel Documents
Culture Documents
Introduction
• Microsoft ASP.NET AJAX enables you to quickly create Web pages that include a rich
user experience with responsive and familiar user interface (UI) elements. ASP.NET
AJAX provides client-script libraries that incorporate cross-browser ECMAScript
(JavaScript) and dynamic HTML (DHTML) technologies, and it integrates them with the
ASP.NET 2.0 server-based development platform. By using ASP.NET AJAX, you can
improve the user experience and the efficiency of your Web applications.
• ASP.NET AJAX enables you to build rich Web applications that have many advantages
over Web applications that are completely server-based. ASP.NET AJAX applications
offer:
• The ASP.NET AJAX server components consist of ASP.NET Web server controls and
components to manage the UI and flow of an application, and to manage serialization,
validation, control extensibility, and so on. There are also ASP.NET Web services that
enable you to access ASP.NET application services for forms authentication and user
profiles.
• The ASP.NET AJAX server controls consist of server and client code that integrate to
produce AJAX-like behavior. The following list describes the most frequently used
ASP.NET AJAX server controls.
ScriptManager
1
UpdatePanel
• Enables you to refresh selected parts of the page, instead of refreshing the whole page
by using a synchronous postback.
UpdateProgress
Timer
• Performs postbacks at defined intervals. You can use the Timer control to post the
whole page, or use it together with the UpdatePanel control to perform partial-page
updates at a defined interval.
• ASP.NET AJAX enables you to create custom ASP.NET AJAX server controls that include
client behaviors. For more information, see the tutorials in ASP.NET AJAX Extensibility
and the Microsoft ASP.NET AJAX Control Toolkit.
• The ASP.NET AJAX Control Toolkit is a collection of samples and components that show
you some of the experiences you can create with rich client ASP.NET AJAX controls and
extenders. The Control Toolkit provides samples and a powerful SDK to make it simple
to create and reuse custom controls and extenders. You can download the ASP.NET
AJAX Control Toolkit from the ASP.NET Ajax Web site. The ASP.NET AJAX Control Toolkit
is community supported.
• Windows XP Professional
• Windows Vista
• Any Windows operating system version (including Windows 2000) that supports the
Microsoft .NET Framework version 2.0. Note that support will be limited to the terms of
support for that platform.
Required Software
2
• The .NET Framework 2.0 or version 3.0.
Optional Software
If your account does not have Administrator rights, the installation process displays the error
"The system administrator has set policies to prevent this installation."
2. Uninstall any earlier versions of ASP.NET AJAX. If the installation process finds an earlier
version on your computer, it will stop.
You can remove earlier versions with the Add or Remove Programs application in Control
Panel.
3. Download the ASPAJAXExtSetup.msi installation package from the ASP.NET AJAX Downloads
Web site.
5. To install ASP.NET AJAX from the command line, execute the following command at a
command prompt:
6. Specify the /q option to perform the installation without user prompts. You can optionally
provide an installation path and a file name for logging. If you do not provide an installation
path, the default installation path is used.
7. If you want to add the ASP.NET 2.0 AJAX Futures CTP, download and install it from the
ASP.NET AJAX Downloads Web site.
3
8.If you want to add the ASP.NET AJAX Control Toolkit, download and install it from
ASP.NET AJAX Control Toolkit Web site.
• If you have Microsoft Visual Studio 2005 installed on your computer, the installation
process installs templates for AJAX-enabled Web site projects. It also installs an
assembly (AJAXExtensionToolbox.dll) that extends the Visual Studio toolbox. When you
create a new AJAX-enabled Web site by using Microsoft Visual Studio 2005, the
template automatically includes the Web.config file that includes the elements required
for ASP.NET AJAX components.
• To add ASP.NET AJAX components to an existing site, modify the Web.config file in the
Web application by using the configuration values from the sample Web.config file in the
installation path. For more information about ASP.NET AJAX configuration values, see
Configuring ASP.NET AJAX.
• You can use ASP.NET AJAX in a Web application by adding the sample Web.config file
from the installation folder to the Web site directory. You can also modify the
Web.config file in an existing Web application by using the configuration values from the
sample Web.config file. For more information about the ASP.NET AJAX configuration
values, see Configuring ASP.NET AJAX.
• You do not have to build a Web site on a Windows-based environment to use the client
framework provided by the Microsoft AJAX Library. The Microsoft AJAX Library consists
of JavaScript files and will work with any browsers that can run JavaScript code.
note
The Microsoft AJAX Library is installed with the full installation. You do not have to install the
Microsoft AJAX Library separately if you have completed the full installation.
1. Download the MicrosoftAJAXLibrary.zip package from the ASP.NET AJAX Downloads Web site.
4
3. Copy the JavaScript files to the Web site.
Introduction
• ASP.NET AJAX is compatible with most modern browsers. It runs with the default
security settings for these browsers.
Users can view your AJAX-enabled ASP.NET sites by using most modern browsers. The following
lists show compatible browser versions and operating systems.
Supported Browsers
Microsoft Vista.
• The following table lists required browser security and privacy settings for both user
browsing and site development. In all cases, the recommended settings are the default
settings for that browser.
Internet Explorer 6 Make sure that the Internet Zone in the Security Zones settings is set
to Medium.
Internet Explorer 7 Make sure that the Internet Zone in the Security Zones settings is set
to Medium-High.
FireFox 1.5 or later In the Tools menu under Options, make sure that Enable JavaScript is
versions selected.
Opera 9.0 or later In the Tools menu under Quick preferences, make sure that Enable
versions JavaScript is selected.
Safari 2.0 or later Click Safari, Preferences, Security, and then Web Content and make
5
versions sure that Enable JavaScript is selected.
note
If browser security and privacy settings are set too high, JavaScript might be disabled. In that
case, the browser cannot run the client-side functionality of an AJAX-enabled ASP.NET
application. For example, an AJAX-enabled ASP.NET page would display; however a UpdatePanel
control on that page would be unable to execute asynchronous postbacks for partial page
rendering.