Skip to Content
ASP.NET 3.5 For Dummies®
book

ASP.NET 3.5 For Dummies®

by Ken Cox
February 2008
Intermediate to advanced
428 pages
8h 52m
English
For Dummies
Content preview from ASP.NET 3.5 For Dummies®

4.5. Improving Performance with the AJAX Update Panel

Nobody likes to wait for a Web page to refresh. In this section, you tackle the evils of postbacks to improve performance. With ASP.NET AJAX, it takes only a couple of minutes to improve the feel of your page. Follow these steps to implement AJAX enhancements:

  1. From the Toolbox, in the AJAX Extensions category, drag a ScriptManager control and drop it before any other controls at the top of the page.

  2. From the Toolbox, drag an UpdatePanel control and drop it below the ScriptManager control.

  3. Drag the GridView control and drop it inside the UpdatePanel control.

  4. Drag the FormView control and drop it inside the UpdatePanel control.

  5. Test the page to confirm that there's no longer a full page-refresh when adding or editing an item.

At runtime, click the links and notice how smooth the page feels. For more ways to use AJAX, see Chapter 15.

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

ASP.NET 3.5 Unleashed

ASP.NET 3.5 Unleashed

Stephen Walther
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9780470195925Purchase book