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:

Regex obfuscate email

 Use this code in C# to obfuscate email using regex // Online C# Editor for free // Write, Edit and Run your C# code using C# Online Compile...