Thursday, August 1, 2013

Sharepoint 2010 custom navigation provider

Created a custom navigation provider using this link

http://code.msdn.microsoft.com/office/SharePoint-2010-Developing-5f0e73c2

but it retrieves all nodes from the root web in site collection so I had to configure the SiteMapDataSource object to show nodes only from current site as below



<asp:SiteMapDataSource ShowStartingNode="true" SiteMapProvider="MyCustomSiteMapProvider"
                                                ID="topSiteMap" runat="server" StartFromCurrentNode="true" StartingNodeOffset="0" />

No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...