
378
CHAPTER 11 Building a Custom gloBal navigation solution
To create the Global Navigation Selector page, follow these steps:
1. Right-click the Wrox.GlobalNavigation project, and select Add New Item.
2. Select Visual C# SharePoint 2010 Application Page. In the Name eld, enter
GlobalNavSelector.aspx.
3. The GlobalNavSelector.aspx should be open in Visual Studio. If not, open it.
4. Replace the PlaceHolderMain content placeholder with the following code:
<asp:Content ID=”Main” ContentPlaceHolderID=”PlaceHolderMain” runat=”server”>
<div style=”padding: 20px”>
<div>
<h2>
Global Navigation Selector</h2>
</div>
<div style=”padding-left: 15px; padding-top: 5px;”>
<table width=”500px”>
<tr valign=”top”>
<td colspan=”2”>
<span style=”font-weight: bold; margin: 5px; width: 98%;
text-align: left”>
Instructions: Specify the url of the site collection which contains a
global navigation menus list and click the [...] button to load a list of
available menus.
<br />
<br />
Example: http://intranet.acme.corp<br />
<br />
</span>
</td>
</tr>
<tr valign=”top”>
<td style=”width: 200px; text-align: right”>
<asp:Label ID=”lblNavigationMenuListUrl”
runat=”server”
Text=”Navigation Menu Source Site Collection:” /><br />
</td>
<td style=”width: 300px”>
<asp:TextBox ID=”txtNavigationMenuListUrl” Width=”250px”
runat=”server” />
<asp:Button ID=”btnRetrieveMenus” runat=”server”
Text=”...” ...