Friday, July 13, 2012

Visual Studi0 2012-RC - SharePoint

My first experience with Visual Studio 2012 RC.I found interesting changes for SharePoint Development project types which will helpful for freshers to differentiate the Farm/Sandbox solution and stuffs.

Wednesday, July 04, 2012

WebPart in Application page

I spent couple of hours to learn how to place the visual webpart in an application page(layout) in sharepoint 2010. Initially I thought it would be very simple like placing the user control in a webpage.But its not after many attempts made,I learned and would like to share step by step. Step:1 Register the assembly which had reference of namespace and webpart's class below to your page directive.

<%@ Register TagPrefix="MyControl" Namespace="SP.Murugesan.AutoCleanupExtender" Assembly="SP.Murugesan, Version=, Culture=neutral, PublicKeyToken=bc4aab377305c5bf"%>

Next step is the real sharepoint approach to place the webpart in application page. You must reference the GUID of your webpart using "__WebPartId" attribute. I used the SharePoint Designer to get the WebPart's GUID.I created on webpart page via SPD 2010 and scan the code view to find my webpart's reference. Step:2