Skip to Content
Beginning ASP.NET 3.5: In C# and VB
book

Beginning ASP.NET 3.5: In C# and VB

by Imar Spaanjaars
March 2008
Intermediate to advanced content levelIntermediate to advanced
766 pages
21h 15m
English
Wrox
Content preview from Beginning ASP.NET 3.5: In C# and VB

10.2. Using ASP.NET AJAX in Your Projects

Prior versions of VWD and ASP.NET AJAX required you to modify the web.config file manually to enable Ajax for your ASP.NET application. If you worked with Ajax before in ASP.NET projects, you'll be happy to learn that this is no longer required. Whenever you create a new web site using the File New Web Site dialog box, it's already Ajax-enabled, meaning that you can start using Ajax right away. The Toolbox now contains an additional category with the available Ajax controls that you can use in your pages right from the start.

10.2.1. Creating Flicker-Free Pages

To avoid full postbacks in your ASPX pages and update only part of the page, you can use the UpdatePanel server control. For this control to operate correctly, you also need a ScriptManager control. If you're going to use Ajax functionality in many of your ASPX pages, you can place the ScriptManager in the master page, so it's available in all pages that are based on this master. You'll find these and other Ajax-related server controls in the AJAX Extensions category of the Toolbox, shown in Figure 10-1. Near the end of this chapter you get a closer look at the ScriptManager control, discovering what it does and what it is used for.

Figure 10-1. Figure 10-1

If you don't see the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning ASP.NET 4: in C# and VB

Beginning ASP.NET 4: in C# and VB

Imar Spaanjaars
Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Bill Evjen, Scott Hanselman, Devin Rader

Publisher Resources

ISBN: 9780470187593Purchase book