After migration from MOSS 2007 to Sharepoint 2010, the month navigation wont work, the button gets disabled. This is because, the webpart is inherited from "System.Web.UI.WebControls.WebParts" Namespace, so get through this, we need to inherit our webpart in which SPCalendarview is used from "Microsoft.SharePoint.WebPartPages.WebPart" Namespace.
public class MyCalendar : Microsoft.SharePoint.WebPartPages.WebPart
Instead of
public class MyCalendar : WebPart
public class MyCalendar : Microsoft.SharePoint.WebPartPages.WebPart
Instead of
public class MyCalendar : WebPart
No comments:
Post a Comment