All pastes #557918 Raw Edit

Macca

public text v1 · immutable
·published 2007-06-11 05:01 UTC
rendered paste body
.master.cs:
		protected void Page_Load(object sender, EventArgs e)
		{
			switch (CurrentPage)
			{
				case PageList.Home:
					DefaultLink.Attributes["class"] = "active";
					break;
				case PageList.Clients:
					ClientsLink.Attributes["class"] = "active";
					break;
				case PageList.Contact:
					ContactLink.Attributes["class"] = "active";
					break;
				case PageList.Services:
					ServicesLink.Attributes["class"] = "active";
					break;
				case PageList.Telephony:
					TelephonyLink.Attributes["class"] = "active";
					break;
				case PageList.Websites:
					WebsitesLink.Attributes["class"] = "active";
					break;
				case PageList.HomeAutomation:
					HomeAutomationLink.Attributes["class"] = "active";
					break;
			}
		}

.master:

<%@ Master Language="C#" AutoEventWireup="true" Inherits="MaccaSoft.Web.MasterPage"	CodeFile="~/MasterPage.master.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<meta name="description" content="MaccaSoft Australia" />
	<meta name="keywords" content="Software Development; Home Automation; Telephony; Website; Programming; IT Solutions" />
	<title>MaccaSoft Australia</title>
	<link rel="stylesheet" type="text/css" href="Style/Screen.css" />
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
</head>
<body>
	<div id="container">
		<div id="nonfooter">
			<div id="header">
				<h1>MaccaSoft <span>Australia</span></h1>
			</div>
			<div id="content">
				<div id="cleft">
					<!-- Main Content Area -->
					<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
					</asp:ContentPlaceHolder>
					<!-- End Main Content Area -->
				</div>
				<div id="cright">
					<!-- Navigation Area -->
					<ul id="nav">
						<li><a runat="server" id="DefaultLink" href="Default.aspx">Home</a></li>
						<li><a runat="server" id="ServicesLink" href="Services.aspx">Services</a></li>
						<li><a runat="server" id="HomeAutomationLink" href="HomeAutomation.aspx">Home Automation</a></li>
						<li><a runat="server" id="WebsitesLink" href="Websites.aspx">Websites</a></li>
						<li><a runat="server" id="TelephonyLink" href="Telephony.aspx">Telephony</a></li>
						<li><a runat="server" id="ClientsLink" href="Clients.aspx">Clients</a></li>
						<li><a runat="server" id="ContactLink" href="Contact.aspx">Contact</a></li>
					</ul>
					<!-- End Navigation Area -->
					<div id="sidebar">
						<h1>News</h1>
						<p>
							<b>2006-Oct-29</b><br />
							New Design</p>
					</div>
				</div>
				<div class="clearboth">
				</div>
			</div>
		</div>
		<div id="footer">
			<p>
				Copyright &copy; 2006 MaccaSoft Australia<br />
				Design by <a href="http://saltedsugar.com/">sofaspud</a> | valid <a href="http://validator.w3.org/check?uri=referer">
					XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
			</p>
		</div>
	</div>

	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
	</script>

	<script type="text/javascript">
		_uacct = "UA-1495614-1";
		urchinTracker();
	</script>

</body>
</html>