only My site

Wednesday, May 29, 2013

SPWebApplication.Lookup Method

Finds the Web application that is located in the specified path.

static void Main(string[] args)
{
     SPWebApplication app = SPWebApplication.Lookup(new Uri("http://spdev2010:1000"));
}

Saturday, May 25, 2013

SharePoint 2010 - SPMetal and Multi list view using Visual webpart



SPMetal.exe resides in "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN" folder.

Example

SPMetal.exe /web:http://YOURSITE /code:SiteEntities.cs 

Friday, May 24, 2013

Sharepoint 2010 Content Type Hub - Publish and subscribe

SharePoint 2010 now introduces a new feature called Content Type Hubs.Content Type Hub is a central location where you can manage and publish your content types – so now web applications can subscribe to this hub and pull down the published content types from the hub. Even receive updates on the published content types!

Some of the useful links are

http://www.sharepoint4developers.net/en-nz/post/sharepoint-2010-content-type-hub.aspx
http://chakkaradeep.com/index.php/sharepoint-2010-content-type-hubs-publish-and-subscribe-to-content-types/
http://blogs.msdn.com/b/chaks/archive/2011/09/04/web-templates-and-content-type-publishing.aspx