Follow Us!
-
Recent Posts
Categories
- [+].Net (45)
- [+]ASP.NET (3)
- [+]ASP.NET Dynamic Data (1)
- [+]Entity Framework (2)
- [+]Linq to SharePoint (3)
- [+]Linq to SQL (3)
- [+]MVC (7)
- [+]WCF (4)
- [+]ASP.NET (3)
- [+]BizTalk 2010 (1)
- [+]Business Intelligence (6)
- [+]Community (1)
- [+]CSS (5)
- [+]Events (5)
- [+]Firebug (1)
- [+]IIS (1)
- [+]InfoPath (2)
- [+]Internet Explorer (1)
- [+]JavaScript (2)
- [+]JQuery (4)
- [+]Office365 (1)
- [+]PerformancePoint (1)
- [+]SharePoint 2007 (25)
- [+]Administration (3)
- [+]Development (8)
- [+]PowerShell (2)
- [+]SharePoint Designer (1)
- [+]Administration (3)
- [+]SharePoint 2010 (84)
- [+]Administration (22)
- [+]Configuration (9)
- [+]Development (9)
- [+]PowerShell (13)
- [+]SharePoint Conference (1)
- [+]SharePoint Designer (6)
- [+]Administration (22)
- [+]SharePoint Online (1)
- [+]Silverlight (1)
- [+]Sitecore (19)
- [+]Administration (3)
- [+]Configuration (2)
- [+]Development (6)
- [+]Administration (3)
- [+]SQL (7)
- [+]Replication (1)
- [+]Replication (1)
- [+]SSIS (2)
- [+]Telerik (1)
- [+]Uncategorized (9)
- [+]Visual Studio (6)
- [+].Net (45)
Tags
Network Engineer New Hires Office 365 Office Web Apps ParallelPeriod PerformancePoint PowerShell ProjectTypeGuids Red Gate Richmond Search Service Applications Service Pack 1 Sharepoint SharePoint 2007 SharePoint 2010 SharePoint Conference SharePoint Designer 2010 SharePoint Online SharePoint Saturday Silverlight SPC11 SPMetal SQL SQL 2008 SSAS SSIS Styles TCSC Technical Project Manager Telerik The Computer Solution Company The Computer Solution Company of VA Transactional Replication Uneven Periods User Profile Service ViewData vs TempData Visio Visio Services Web Part Pages Web Parts Windows 8 Workflows WSPBuilder XML CommentsTwitter
- I'm hiring! SharePoint Analyst and Developer at TCSC - Washington D.C. Metro Area #jobs http://t.co/0SkEPQvp 22 hours ago
- New post on #WCF Performance http://t.co/fPU2eBVV #dotnet #aspnet 3 days ago
- #SharePoint My Site Custom Quota Template Not Applying http://t.co/KmrQL7N5 #SP2010 3 days ago
- Photos from the #RVA #CFALeadercast are now on our Facebook page! http://t.co/PPXCt0J1 4 days ago
- #Sitecore Quick Tips - Device Fallback http://t.co/MWUGKKtm 4 days ago
Archives
-
Meta
Daily Archives: January 31, 2012
Adding to a SharePoint 2010 List with Lookups
I had a situation recently where I was building a form in SharePoint 2010. I used a main list for the form and several other lists as lookup values for some of the fields. I used a .NET User Control for the UI, and SPMetal and LINQ to interact with SharePoint. This was my first time using SPMetal, and I had trouble adding items to the main list. The error was coming from the lookup fields. I eventually figured out that you can’t assign lookup field values to an item while you are adding it. You have to create the item first without the lookup values, then go back and add them.
Posted in Development, Linq to SharePoint, SharePoint 2010
|
Tagged LINQ, SharePoint 2010, SPMetal
|
Leave a comment