473,464 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.NET 2.0 MasterPage renders blank?

K B
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"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain"
Runat="Server">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:Content>

*** Sent via Developersdex http://www.developersdex.com ***
May 10 '06 #1
2 1912
But what else did you put in this ASPX file? Plus, what do you have in your
script block/code-behind?
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"K B" <ka**********@comcast.net> wrote in message
news:OK**************@TK2MSFTNGP05.phx.gbl...
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"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain"
Runat="Server">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:Content>

*** Sent via Developersdex http://www.developersdex.com ***

May 18 '06 #2
K B
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!

Kit
*** Sent via Developersdex http://www.developersdex.com ***
May 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Leffe Andersson | last post by:
Hi folks! I have a MasterPage with some public methods, and I would like to call them from a (app_code) class. Is it possible to set a directive or an assembly reference to a MasterPage from a...
1
by: clintonG | last post by:
I'm having a problem with a label in a MasterPage which is not in a ContentPlaceHolder. The naughty label will not allow me to change its text property. <%-- renders the label's text directly to...
0
by: Bo | last post by:
Can anyone explain why the code below inserts blank values into my access database while the same code without the masterpagefile reference works and inserts the values? <%@ Page Language="VB"...
3
by: Alex Maghen | last post by:
Hi. I'm a little confused about the code that resides in the code-behind of a MasterPage and the code that resides in the code-behind of the actual pages that USE that MasterPage. I'm noticing,...
2
by: K B | last post by:
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. ...
5
by: Islamegy® | last post by:
In my project i have two master page which i change dynamic in runtime.. The first one with 1 ContentPanel "onepanel.master", the second with 2 contentPanel"twopanel.master".. but when i switch...
4
by: cevans | last post by:
Is there a way to load a MasterPage programmatically? Not switch a page's masterpage but to create a MasterPage object that holds a given masterpage. So I know I can do: MasterPage master =...
1
by: Joe Fallon | last post by:
I tried Google to see if this has been an issue for other people but did not find anything. In my ASP.Net 1.1 application the radio button list renders the way I want it. But after converting to...
3
by: sloan | last post by:
Ok. In a simple scenario where I have a MasterPage Web Content Page (using the just mentioned MasterPage) and a DropDownList on the content page. When the page renders, I get something...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.