Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2011, 02:14 PM
Authorized User
 
Join Date: Feb 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default CHP12 - MAnageMaster Page links being overlayed

When I request Default or Genres from Management folder into browser, Content2 of both pages overlays the links in the ManageMaster Page........

Checked code and all looks hunkyDory......
 
Old February 20th, 2011, 04:00 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Checked code and all looks hunkyDory......
Something must be wrong somewhere, so can you post the code for the Master Page and the theme's CSS file?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old February 21st, 2011, 11:39 AM
Authorized User
 
Join Date: Feb 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Attached the MMpage but am confused as to why CSS file are implicated as nine of the themes(Monochrome/DarkGrey) are used in this part of excercise......


Code:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="ManagementMaster.master.cs" Inherits="MasterPages_ManagementMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div>
        <div style="width: 20px; float: left;">
        <ul>
            <li><a href="~/Management/Default.aspx" runat="server">Manage Home</a></li>
            <li><a href="~/Management/Genres.aspx" runat="server">Manage Genres</a></li>
            <li><a href="~/Management/Reviews.aspx" runat="server">Manage Reviews</a></li>
        </ul>
        </div> 
        <div style="width: 750px; float: left;">
            <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
        </div>    
    </div>
    </form>
</body>
</html>
Post Edit.

Just checked HTML of page not displaying and Monochrome CSS sheet is used.

Code:

*
{
	font-family: Arial, Sans-Serif;
}

body
{
	/* 
		Clears white space around the body except for the top which gets 10 pixels.
	*/
	margin: 10px 0 0 0;
}

a
{
	/*
		Clears the underline on normal links, and give them #308462 as the color.
	*/
	color: #308462;
	text-decoration: none;
}

a:hover
{
	/*
		Underlines links when the users hover the mouse over them.
	*/
	text-decoration: underline;
}

h1
{
  /*
    Makes h1 elements smaller than their browser default.
  */
 font-size : 20px;
}

.Introduction
{
  font-style: italic;
  color: #003399;
}

#PageWrapper
{
	/*
		Sets the total width for the entire page. 
	*/
	width: 844px;
	background-color: #cccccc;
}

#Header
{
	/*
		Gives the header the same width as the PageWrapper. The height creates some room for the logo
		that is set with the background-image.
	*/
	background-image: url(Images/Header.jpg);
	width: 844px;
	height: 86px;
}



.HeaderLink
{
	/*
		The #HeaderLink is nested in the #Header. It provides a link to the homepage.
	*/
	width: 844px; 
	height: 86px; 
	display: block;	
}

#MenuWrapper
{
	/*
		The menu spans the page width, right below the header.
		At the top and left a few pixels padding is applied to create some room.
	*/
	background-image: url(Images/MenuBackground.jpg);
	width: 827px;
	height: 36px;
	padding-top: 7px;
	padding-left: 17px;
}

#MenuWrapper a
{
	/*
		Links in the Menu are white. This gets overriden by styles in chapter 7.
	*/	
  color: #fff;

}

.MainMenu
{
	/*
		The Menu gets a white border on all four sides.
	*/
	border: 1px solid white;
	width: 814px;
	height: 19px;
	background-color : #cccccc;
}

#MainContent
{
	/*
		Defines the main content area. The #MainContent element has a minimum height of 500 pixels, but can grow if necessary.
		The font-size is 80% of its parenty element, which in this case comes down to 80% of the font
		the user has specified as the default font in the browser.
	*/
	font-size: 0.8em;
	width: 659px;
	border-left: 1px solid white;
	border-right: 2px solid white;
	float: left;
	background-color: #e1e1e1;
	min-height: 500px;
	padding: 10px;
}

#Sidebar
{
	/*
		The SideBar is positioned to the right of the MainContent area. It gets the same font-size as #MainContent
		and gets a background image called Sidebar.jpg. To ensure the image is visible in (most) browsers
		on a dmall page, the element gets a minimum height of 500px. This is ignored by IE 6.
	*/
	font-size: 0.8em;
	background-image: url(Images/Sidebar.jpg);
	background-repeat: no-repeat;
	background-color: #cccccc;
	width: 152px;
	min-height: 500px;
	padding-top: 10px;
	padding-left: 10px;
	float: left;
}

#Footer
{
	/*
		The footer is positioned below all other content (yet still within PageWrapper).
		At the top, it gets a border with a dashed style, while all other sides have no border.
		clear: both is used to clear the impact of the float properties used for #MainContent and #SideBar.
	*/
	clear: both;
	height: 37px;
	background-color : #bee4cf;
	color: White;
	text-align: center;
	font-size: 0.7em;
	font-weight: bold;
	line-height: 37px;
}
.MyButton
{
	color: #308462;	
}
.StaticMenuItemStyle, .StaticMenuItemStyle a 
{
	/* Defines the look of main menu items. */
	color: #707070;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
	padding-left: 2px;
}

.StaticHoverStyle, .StaticSelectedStyle
{
	/* Defines the look of active and hover menu items */
	background-color: #c1e4ce;
}

/*.adjustedZIndex {
    z-index: 1;
}
*/

.DynamicMenuStyle 
{
z-index: 1000;
}

.DynamicMenuItemStyle
{
	/* Defines the sub menu items */
	font-size: 14px;
	color: #707070;
	background-color: #cccccc;
	padding: 4px 2px 4px 3px;
}

.DynamicHoverStyle
{
	/* Defines the hover style of sub menus */
	background-color: #707070;
	color: White;
}

.DynamicHoverStyle a
{
	/* Removes the underline from links in the sub menus */
	text-decoration: none;
}
.PleaseWait
{
  height: 32px;
  width: 500px;
  background-image: url(Images/PleaseWait.gif);
  background-repeat: no-repeat;
  padding-left: 40px;
  line-height: 32px; 
}

Last edited by Cooler; February 21st, 2011 at 11:42 AM..
 
Old February 21st, 2011, 11:56 AM
Authorized User
 
Join Date: Feb 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Apologies.

noticed the width is set to 20px instead of 200px in Managemaster....
 
Old February 21st, 2011, 12:53 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, that explains it

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Product Categories - the page links talofo BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 6 October 12th, 2009 09:53 AM
Server Application Unavailable - CHp12 MickB BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 6 September 1st, 2009 10:49 PM
Web Page links snufse ASP.NET 2.0 Basics 1 April 10th, 2008 11:57 PM
Page links in forum title jimibt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 October 17th, 2007 04:37 PM
links to a page when a button is clicked hosefo81 HTML Code Clinic 4 December 7th, 2003 06:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.