.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Update 20+ lookup Column in SharePoint 2010 Programmatically

Posted By:Sagar Pardeshi       Posted Date: October 28, 2013    Points: 25    Category: SharePoint    URL: http://www.dotnetspark.com  

When we update near about 20+ lookup Column that time coming Issue we resove that issue using "ThrottleOption".....
 

 

 

 

using (SPSite oSite = new SPSite(SPContext.Current.Site.Url)) 
{
using (SPWeb oWeb = theSite.RootWeb)
{
SPList theList = oWeb.Lists["My List "];
 
SPQuery qry = new SPQuery();
qry.QueryThrottleMode = SPQueryThrottleOption.Override;
 
//set the Query property as needed to retrieve your data
 
            SPListItemCollection coll = theList.GetItems(qry);
 
            //do something with the data
             .............
               
}
}


     

Further Readings:

Responses
Author: abhays         Company URL: http://www.dotnetspark.com
Posted Date: October 29, 2013

Great Post.

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend