MasterPage shows blank page in IE browser???

K

K B

Hi, I have a basic master page with a title bar and two content
placeholders. Then I created a new aspx page with that MasterPage. I
added one label control to the content holder as a test.

When I run the page it is BLANK. Any ideas please???

Thanks, Kit

Here is my simple aspx:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master"
AutoEventWireup="false" CodeFile="MainMenu.aspx.vb" Inherits="MainMenu"
title="MainMenu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMenu"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain"
Runat="Server">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:Content>
 
P

Patrice

My first step would be to use "View source" to see the actual HTML code
rather than how the page looks like. I would add also some static text (in
case the problem would be that the label is just empty producing no visible
output).
 
K

K B

Thanks, I've found out what causes the problem...but I don't know why.
When I add a basic SiteMap to the masterpage, it causes the HTML to
become blank, the source html shows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Without the sitemap control, this is the source html:


<!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><title>
Untitled Page
</title></head>
<body>
<form name="aspnetForm" method="post" action="MainMenu.aspx"
id="aspnetForm">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwUKMTA5NjQ3MzE0NWRkkVJHdEJN5zt/ErdeX7OHNG8+2cs=" />
</div>

<div>
<table width="100%">
<tr>
<td width="20%">
</td>
<td style="width: 461px">
<span id="ctl00_Label2"
style="display:inline-block;color:MediumSeaGreen;font-family:Arial;font-
size:XX-Large;width:625px;">Endpoint Research Help Desk</span></td>
</tr>
</table>
<br />
<table width="100%">
<tr>
<td valign="top" width="20%">

<span id="ctl00_cphLeft_Label1">Label</span>

</td>
<td valign="top" width="80%">

<span id="ctl00_cphRight_Label2">Label</span>

</td>
</tr>
</table>
</div>
</form>
</body>
</html>

Any ideas? Does that mean I can't use the sitemap in the masterpage?

Thanks,
Kit
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top