Analyzing Web Parts with SharePoint Developer Dashboard
We are going to use another alternative to retrieve information for the user assigned to each item. We can avoid running many complex asynchronous executions to retrieve the user for each item in the ProjectsList2010
list. Follow these steps to retrieve the user related to each item in the ProjectsList2010
list by using a LINQ to objects query to perform a join on two lists.
- Stay in Visual Studio as a system administrator user.
- Open
MainPage.xaml.cs
and replace the code in theShowProjects
method with the following lines. This time, it will run two asynchronous queries to retrieve all the items for theProjectsList2010
andUserInformationList
lists. Then, it will perform a LINQ to objects query ...
Get Microsoft Silverlight 4 and SharePoint 2010 Integration now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.