mlawton40
March 2nd, 2007, 08:58 AM
I have the following main.Master template. and all the main pages are put in the MainContent placeholder.
When the user is logged in I want there to be a left hand panel in the main content holder which contain a aspx file, or it can just be a panel that I can put some links in really.
So its basically a navigation panel (its not just links going in there though). Which i want to be on every page when logged in.
Any IDeas?
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="sdsdd.Web.UI.MainMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />
<title>De La Rue</title>
</head>
<body>
<form id="MainForm" runat="server">
<div style="position: absolute; top: 10px; left: 80px; z-index: 2">
<asp:Menu ID="Menu1" runat="server" BackColor="Transparent" CssClass="menuclass"
DataSourceID="SiteMapDataSource1" DynamicEnableDefaultPopOutImage="true" DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="0.8em" ForeColor="#28984E" Orientation="Horizontal"
SkipLinkText="" StaticDisplayLevels="2" StaticEnableDefaultPopOutImage="false"
StaticSubMenuIndent="0">
<StaticMenuItemStyle CssClass="menuimgclass" HorizontalPadding="10px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="Transparent" CssClass="grey" ForeColor="#28984E" />
<DynamicMenuStyle BackColor="White" CssClass="floatmenu" />
<StaticSelectedStyle BackColor="Transparent" />
<DynamicSelectedStyle BackColor="Transparent" />
<DynamicMenuItemStyle CssClass="arrowimg" HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="Transparent" CssClass="grey" ForeColor="#28984E" />
</asp:Menu>
</div>
<div style="position: absolute; top: 0px; height: 82px; width: 100%; background-color: White;">
<asp:Image ID="HeaderImage" runat="server" ImageUrl="~/Images/dlr_logo1.gif" /></div>
<asp:Panel runat="server" BackImageUrl="~/Images/montage_bg.gif" Style="position: absolute;
top: 82px; height: 74px; width: 100%; border-bottom: 1px solid white;">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/home_montage.jpg" /></asp:Panel>
<%--<div style="position: absolute; top: 82px; height: 74px; width: 100%; background-image: url(~/Images/montage_bg.gif);
border-bottom: 1px solid white;">
<asp:Image ID="BannerImage" runat="server" ImageUrl="~/Images/home_montage.jpg" /></div>--%>
<div style="position: absolute; top: 157px; height: 20px; width: 100%; background-color: #FFEF7A;
border-bottom: 1px solid white;">
<div style="padding: 2px; padding-left: 50px;">
<asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="breadcrumb">
</asp:SiteMapPath>
</div>
</div>
<div style="position: absolute; top: 178px; height: 32px; width: 100%; background-color: #464646;
border-bottom: 1px solid white; color: White; font-size: 12pt;">
<div style="padding: 5px; padding-left: 150px">
<asp:ContentPlaceHolder ID="TitleContent" runat="server">
<asp:LoginView ID="LoginView2" runat="server">
<AnonymousTemplate>
Welcome to <%=SiteName %>.
</AnonymousTemplate>
<LoggedInTemplate>
Welcome <asp:LoginName ID="LoginName1" runat="server" /> to <%=SiteName %>. (<asp:LoginStatus ID="LoginStatus1" runat="server" />)
</LoggedInTemplate>
</asp:LoginView>
</asp:ContentPlaceHolder>
</div>
</div>
<table id="maintable" cellpadding="0" cellspacing="0">
<tr>
<td id="maincell">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td id="footercell">
<asp:ContentPlaceHolder ID="FooterContent" runat="server">
<table id="footertable" style="width: 100%;">
<tr>
<td colspan="2" style="width: 100%; white-space: nowrap; text-align: center; overflow: hidden;">
Registered Office: dfdfdf, dfdfdf, dfdfd,
dfdf Rdff dfdd, Registered No: dfdf England
</td>
</tr>
<tr>
<td style="width: 50%; white-space: nowrap; text-align: left;">
<a href="LegalInformation.aspx" target="_blank">Legal Information</a>
</td>
<td style="width: 50%; white-space: nowrap; text-align: right;">
Copyright © <a href="http://www.delarue.com" target="_blank">dfdfd</a>
2007
</td>
</tr>
</table>
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</form>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</body>
</html>
Cheers, Mark
When the user is logged in I want there to be a left hand panel in the main content holder which contain a aspx file, or it can just be a panel that I can put some links in really.
So its basically a navigation panel (its not just links going in there though). Which i want to be on every page when logged in.
Any IDeas?
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="sdsdd.Web.UI.MainMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />
<title>De La Rue</title>
</head>
<body>
<form id="MainForm" runat="server">
<div style="position: absolute; top: 10px; left: 80px; z-index: 2">
<asp:Menu ID="Menu1" runat="server" BackColor="Transparent" CssClass="menuclass"
DataSourceID="SiteMapDataSource1" DynamicEnableDefaultPopOutImage="true" DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="0.8em" ForeColor="#28984E" Orientation="Horizontal"
SkipLinkText="" StaticDisplayLevels="2" StaticEnableDefaultPopOutImage="false"
StaticSubMenuIndent="0">
<StaticMenuItemStyle CssClass="menuimgclass" HorizontalPadding="10px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="Transparent" CssClass="grey" ForeColor="#28984E" />
<DynamicMenuStyle BackColor="White" CssClass="floatmenu" />
<StaticSelectedStyle BackColor="Transparent" />
<DynamicSelectedStyle BackColor="Transparent" />
<DynamicMenuItemStyle CssClass="arrowimg" HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="Transparent" CssClass="grey" ForeColor="#28984E" />
</asp:Menu>
</div>
<div style="position: absolute; top: 0px; height: 82px; width: 100%; background-color: White;">
<asp:Image ID="HeaderImage" runat="server" ImageUrl="~/Images/dlr_logo1.gif" /></div>
<asp:Panel runat="server" BackImageUrl="~/Images/montage_bg.gif" Style="position: absolute;
top: 82px; height: 74px; width: 100%; border-bottom: 1px solid white;">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/home_montage.jpg" /></asp:Panel>
<%--<div style="position: absolute; top: 82px; height: 74px; width: 100%; background-image: url(~/Images/montage_bg.gif);
border-bottom: 1px solid white;">
<asp:Image ID="BannerImage" runat="server" ImageUrl="~/Images/home_montage.jpg" /></div>--%>
<div style="position: absolute; top: 157px; height: 20px; width: 100%; background-color: #FFEF7A;
border-bottom: 1px solid white;">
<div style="padding: 2px; padding-left: 50px;">
<asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="breadcrumb">
</asp:SiteMapPath>
</div>
</div>
<div style="position: absolute; top: 178px; height: 32px; width: 100%; background-color: #464646;
border-bottom: 1px solid white; color: White; font-size: 12pt;">
<div style="padding: 5px; padding-left: 150px">
<asp:ContentPlaceHolder ID="TitleContent" runat="server">
<asp:LoginView ID="LoginView2" runat="server">
<AnonymousTemplate>
Welcome to <%=SiteName %>.
</AnonymousTemplate>
<LoggedInTemplate>
Welcome <asp:LoginName ID="LoginName1" runat="server" /> to <%=SiteName %>. (<asp:LoginStatus ID="LoginStatus1" runat="server" />)
</LoggedInTemplate>
</asp:LoginView>
</asp:ContentPlaceHolder>
</div>
</div>
<table id="maintable" cellpadding="0" cellspacing="0">
<tr>
<td id="maincell">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td id="footercell">
<asp:ContentPlaceHolder ID="FooterContent" runat="server">
<table id="footertable" style="width: 100%;">
<tr>
<td colspan="2" style="width: 100%; white-space: nowrap; text-align: center; overflow: hidden;">
Registered Office: dfdfdf, dfdfdf, dfdfd,
dfdf Rdff dfdd, Registered No: dfdf England
</td>
</tr>
<tr>
<td style="width: 50%; white-space: nowrap; text-align: left;">
<a href="LegalInformation.aspx" target="_blank">Legal Information</a>
</td>
<td style="width: 50%; white-space: nowrap; text-align: right;">
Copyright © <a href="http://www.delarue.com" target="_blank">dfdfd</a>
2007
</td>
</tr>
</table>
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</form>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</body>
</html>
Cheers, Mark