Posts

Showing posts with the label cross site collection

Custom Cross site collection Navigation using user control

Hi, Sometimes the out of box navigation does not provides us the type of navigation wants on the whole application. To make such custom navigation which is consistent throughout many site collection it is batter to create a custom user control and simply register it in to the master page. Applying the same master page on every site collection will do the job. Follow below steps to create the user control: 1) Right click on the project and the click on Add New Item. 2)Then add a User Control. Name it as per the convention. 3)Under the ascx file create any type of control you wana use, I prefer asp menu: <div > <asp:Menu ID="MyTopMenu" Orientation="Horizontal" runat="server"> <StaticMenuItemStyle CssClass="topNavStaticMenuItem"/> <StaticSelectedStyle CssClass="topNavSelectedStaticMenuItem"></StaticSelectedStyle> </asp:Menu></div> 4) Now next step is to populate the menu with the tabs: protected vo...