Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. [newbie] Nothing displayed in page that should inherit from Master

[newbie] Nothing displayed in page that should inherit from Master

Scheduled Pinned Locked Moved ASP.NET
workspacecsharpvisual-studiocomsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jon 80
    wrote on last edited by
    #1

    I've setup a few pages that inherit from a MasterPage, however, in my case, Home.aspx displays the top navigation banner I have created, but, the other pages do not display the top navigation bar.

    Home.aspx - within this page the navigation bar is displayed
    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="_Default" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    </asp:Content>

    Chat.aspx - when I browse to this page the navigation bar is not displayed
    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Chat.aspx.cs" Inherits="Chat" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>

    Solution uploaded at http://cid-b712073b3513eb8e.skydrive.live.com/self.aspx/.Public/Blog.rar[^] The problem happens on Google Chrome only (at least the navigation bar is displayed). Within Mozilla FF, IE and the internal browser scroll bars only are displayed. Screenshots at http://cid-b712073b3513eb8e.skydrive.live.com/self.aspx/.Public/blog-screendump.docx[^] :confused: Environment notes VS 2008 SP1 Windows XP SP3 + IIS 5.1 Google Chrome / Mozilla FF 3.0.10 / IE

    Jon

    G 1 Reply Last reply
    0
    • J jon 80

      I've setup a few pages that inherit from a MasterPage, however, in my case, Home.aspx displays the top navigation banner I have created, but, the other pages do not display the top navigation bar.

      Home.aspx - within this page the navigation bar is displayed
      <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="_Default" %>

      <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

      </asp:Content>

      Chat.aspx - when I browse to this page the navigation bar is not displayed
      <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Chat.aspx.cs" Inherits="Chat" %>

      <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
      </asp:Content>

      Solution uploaded at http://cid-b712073b3513eb8e.skydrive.live.com/self.aspx/.Public/Blog.rar[^] The problem happens on Google Chrome only (at least the navigation bar is displayed). Within Mozilla FF, IE and the internal browser scroll bars only are displayed. Screenshots at http://cid-b712073b3513eb8e.skydrive.live.com/self.aspx/.Public/blog-screendump.docx[^] :confused: Environment notes VS 2008 SP1 Windows XP SP3 + IIS 5.1 Google Chrome / Mozilla FF 3.0.10 / IE

      Jon

      G Offline
      G Offline
      gottimukkala
      wrote on last edited by
      #2

      Hi I would say that you should have the controls registered in your page (inside your content place holders). then you should start see soemthing. sample example here: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Account.aspx.cs" Inherits="v1_1_Pages_Account" MasterPageFile="~/v1_1/MasterPages/master2.master" Title="My Profile" Theme="v1_1"%> <%@ Register Src="../../Controls/Common/CtrlBreadCrumb.ascx" TagName="CtrlBreadCrumb" TagPrefix="uc1" %> <asp:Content ID="Content3" ContentPlaceHolderID="breadCrumb" Runat="Server"> <uc1:CtrlBreadCrumb ID="CtrlBreadCrumb1" runat="server" /> </asp:Content> Hope that helps

      -- http://ashakthi.blogspot.com http://kids-articles.blogspot.com

      J 1 Reply Last reply
      0
      • G gottimukkala

        Hi I would say that you should have the controls registered in your page (inside your content place holders). then you should start see soemthing. sample example here: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Account.aspx.cs" Inherits="v1_1_Pages_Account" MasterPageFile="~/v1_1/MasterPages/master2.master" Title="My Profile" Theme="v1_1"%> <%@ Register Src="../../Controls/Common/CtrlBreadCrumb.ascx" TagName="CtrlBreadCrumb" TagPrefix="uc1" %> <asp:Content ID="Content3" ContentPlaceHolderID="breadCrumb" Runat="Server"> <uc1:CtrlBreadCrumb ID="CtrlBreadCrumb1" runat="server" /> </asp:Content> Hope that helps

        -- http://ashakthi.blogspot.com http://kids-articles.blogspot.com

        J Offline
        J Offline
        jon 80
        wrote on last edited by
        #3

        However I did not create any controls as yet..

        Jon

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups