ASP.NET 2.0 MasterPage renders blank?

Discussion in 'ASP .Net' started by K B, May 10, 2006.

  1. K B

    K B Guest

    Hi, I created a simple MasterPage, then created a content page. I've
    checked that my MasterPage HTML is correct, but when I run the content
    page, I get a blank page in IE. My content page is simply two
    placeholders and a label control. TIA, Kit

    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="false" CodeFile="MainMenu.aspx.vb" Inherits="MainMenu"
    title="Untitled Page" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="cphMenu"
    <asp:Content ID="Content2" ContentPlaceHolderID="cphMain"
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    K B, May 10, 2006
    1. Advertisements

  2. But what else did you put in this ASPX file? Plus, what do you have in your
    script block/code-behind?
    Christopher Reed, May 18, 2006
    1. Advertisements

  3. K B

    K B Guest

    I had added a sitemap control but did not bind it to any datasource.
    For some reason, my page just didn't like that. Once I added the
    datasource, all was well.

    Thanks for answering!

    K B, May 18, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.