Welcome to MSDN Blogs Sign in | Join | Help

March 2007 - Posts

How to access fields in a listitem through object model?

  In a nutshell : SPContext .Current.Web.Lists[ "Documents" ].Items[0][ "Title" ].ToString();
Posted by jukka | 1 Comments

Locale & variations

Today i was figuring out how to detect which locale is in use on a site with variation labels. Here's a little codeblock to demonstrate it: // code in assembly Microsoft.SharePoint.Publishing PublishingWeb pWeb = PublishingWeb.GetPublishingWeb(SPContext.Current.Web);
Posted by jukka | 0 Comments
Filed under: ,
 
Page view tracker