Asked by:
Updating Links in header and footer file

Question
-
User-1230544809 posted
Can someone please let me know how to go about adding links to the header and footer file. I would think it would have to be updated in the default.master file, but I just don't know where in the code to make the change. Here is the code to the default.master file....any help would be appreciated
<%@ Master Language="VB" %>
<%@ Register TagPrefix="ClubSite" TagName="HitCounter" src="~/UserControls/HitCounter.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Not (IsPostBack) Then
ActivateUsers.Text = Application("activeUsers").ToString
Dim ClubName As String = ConfigurationManager.AppSettings("ClubName")
Dim ClubSlogan As String = ConfigurationManager.AppSettings("ClubSlogan")
Dim ClubAddress As String = ConfigurationManager.AppSettings("ClubAddress")
Dim ClubCopyright As String = ConfigurationManager.AppSettings("ClubCopyright")
If Not (ClubName Is Nothing) Or ClubName <> "" Then
'Label_ClubName.Text = ClubName
'masterhead.Title = ClubName
Else
'Label_ClubName.Text = "My Club Site"
'Label_ClubName.Text = "Welcome to Greater Mt Olive Overcoming Church of GOD"
'masterhead.Title = "My Club Site"
'masterhead.Title = "Welcome to Greater Mt Olive Overcoming Church of GOD"
End If
If Not (ClubSlogan Is Nothing) Or ClubSlogan <> "" Then
'Label_ClubSlogan.Text = ClubSlogan
Else
'Label_ClubSlogan.Text = "My Club Site tag line or slogan"
'Label_ClubSlogan.Text = "WHERE WE'RE GOING PLACES IN GOD WE'VE NEVER GONE BEFORE....TOGETHER"
End If
If Not (ClubAddress Is Nothing) Or ClubAddress <> "" Then
'Label_ClubAddress.Text = ClubAddress
Else
'Label_ClubAddress.Text = "Club Address here"
End If
If Not (ClubCopyright Is Nothing) Or ClubCopyright <> "" Then
'Label_Copyright.Text = ClubCopyright
Else
'Label_Copyright.Text = "Copyright © 2007 My Club Site. All Rights Reserved."
End If
End If
If Page.User.Identity.IsAuthenticated Then
Membership.GetUser(Membership.GetUser.ProviderUserKey(), True)
End If
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head id="masterhead" runat="server">
<title>Greater Mount Olive OCOG</title>
<link rel="alternate" type="application/rss+xml" title="News" href="~/RSS/NewsRss.aspx" />
<link rel="alternate" type="application/rss+xml" title="Events" href="~/RSS/EventRss.aspx" />
<link rel="alternate" type="application/rss+xml" title="Blog" href="~/RSS/BlogsRss.aspx" />
<link rel="alternate" type="application/rss+xml" title="Forums" href="~/RSS/AllPostsRss.aspx" />
<link rel="alternate" type="application/rss+xml" title="Photo Albums" href="~/RSS/AlbumsRss.aspx" />
</head>
<body>
<div id="poster">
<h1 align="center">
<asp:Label ID="Label_ClubName" runat="server" >Welcome to Greater Mt Olive
Overcoming Church of GOD</asp:Label>
</h1>
<h2 align="center">
<asp:Label ID="Label_ClubSlogan" runat="server" style="text-align: justify" >"WHERE WE'RE GOING PLACES IN
GOD WE'VE NEVER GONE BEFORE....TOGETHER"</asp:Label>
</h2>
</div>
<div class="none">
<a href="http://forums.asp.net/AddPost.aspx?ForumID=1004#content_start">Skip Repetitive Navigational Links</a></div>
<div id="navtop">
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
<asp:Repeater ID="TopNavRepeat" runat="server" DataSourceID="SiteMapDataSource1">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("Url") %>'
ToolTip='<%# Eval("Description") %>' />
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</div>
<form id="form1" runat="server">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</form>
<div id="navbottom">
<asp:Repeater ID="BottomNavRepeat" runat="server" DataSourceID="SiteMapDataSource1">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("Url") %>'
ToolTip='<%# Eval("Description") %>' />
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</div>
<div id="footer">
<asp:Label ID="Label_ClubAddress" runat="server"
Text="http://www.greatermtoliveocog.com"/>
<br />
<asp:Label ID="Label_Copyright" runat="server"
Text="Copyright 2008 GMOCOG. All Rights Reserved."/><br />
Number of users on the site (<asp:Label ID="ActivateUsers" runat="server"></asp:Label>)<br />
<ClubSite:HitCounter ID="HitCounter" runat="server" />
</div>
</body>
</html>
Monday, July 28, 2008 10:12 PM
All replies
-
User-2071395231 posted
The links are pulled in from the web.sitemap file
Wednesday, August 6, 2008 8:40 AM