[newbie] Nothing displayed in page that should inherit from Master
-
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
-
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
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
-
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