Creating AJAX enabled web parts

In this recipe, we will rewrite the first recipe to utilize the AJAX. For this recipe, we will create a visual web part that shows the data from the AdventureWorks database. We will add pagination to the GridView that we used in the first recipe.

Getting ready

You should complete the previous recipes successfully to follow this one.

How to do it...

  1. Launch your Visual Studio 2010 IDE as an administrator (right-click on the shortcut and select Run as administrator).
  2. Select File | New | Project. The new project wizard dialog box will be displayed (Make sure to select .NET Framework 3.5 in the top drop-down box.)
  3. Select Empty SharePoint Project under Visual C# | SharePoint | 2010 node from the Installed Templates section ...

Get Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.