View Single Post
  #5 (permalink)  
Old September 1st, 2010, 02:59 AM
leemark2k3 leemark2k3 is offline
Authorized User
Points: 168, Level: 3
Points: 168, Level: 3 Points: 168, Level: 3 Points: 168, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2009
Posts: 40
Thanks: 4
Thanked 0 Times in 0 Posts

Heres my code Imar. This is my second go at the book but im playing around and changing the odd thing to get a better understanding such as i have different menu headings as you will see. The majority of the code is exactly the same as the book so im unsure why in the bool-Home,Reviews, About and Login are perfectly spaced apart but my headings are clumped together and i just cant figure it out. Help would be appreciated. Thanks Imar.

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
    <title>Master Page</title>
    <asp:ContentPlaceHolder id="head" runat="server">

    <form id="form1" runat="server">
    <div id="PageWrapper">
    <div id="Header"><a class="HeaderLink" href="~/" runat="server"></a></div>
    <div id="MenuWrapper">
    <asp:menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" 
            Orientation="Horizontal" StaticEnableDefaultPopOutImage="False">
            <StaticMenuItemStyle CssClass="StaticMenuItemStyle" />
            <StaticSelectedStyle CssClass="StaticSelectedStyle" />
          <DynamicHoverStyle CssClass="DynamicHoverStyle" />
          <DynamicMenuItemStyle CssClass="DynamicMenuItemStyle" />
          <StaticHoverStyle CssClass="StaticHoverStyle" />
        <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" 
            ShowExpandCollapse="False" Visible="False">
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
            ShowStartingNode="False" />
    <div id="MainContent">
       <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath><br /><br />
    <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
    <div id="Sidebar" align="center">
    <br />
    <br />
        <SSB:Banner ID="Banner1" runat="server" />

    <div id="Footer"></div>
Default page
<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="HomePage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
            font-size: x-large;
            font-weight: bold;
            font-size: x-large;
            font-weight: normal;
            font-size: x-large;
            font-size: medium;
            font-weight: normal;
            font-size: medium;
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="MainContent0">
            <span class="style3">Hi and Welcome to Salford Student Books</span><span class="style1"><b><br />
            <span class="style4">Salford Student Books is </span>
            <span class="style2"> <a href="" class="style5">
            The University of Salford's</a></span><span class="style4"> exclusive home for buying and selling your 
            student books. Here you'll find a large range of student books in every 
            category. You can </span>
            <span class="style2"> <b class="style5">search for books</b><span 
                class="style4"> or </span>
            <b class="style5">add a book</b><span class="style4"> to sell here. </span>
            <b class="style5">
            Registration</b><span class="style4"> is absolutely free. </span>
            <a href="Log-in.aspx" class="style5">Log In Here</a></p>
Reply With Quote