473,799 Members | 3,026 Online
Bytes | Software Development & Data Engineering Community
+ 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.mast er"
AutoEventWireup ="false" CodeFile="MainM enu.aspx.vb" Inherits="MainM enu"
title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHol derID="cphMenu"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHol derID="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 1924
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**********@c omcast.net> wrote in message
news:OK******** ******@TK2MSFTN GP05.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.mast er"
AutoEventWireup ="false" CodeFile="MainM enu.aspx.vb" Inherits="MainM enu"
title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHol derID="cphMenu"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHol derID="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
4352
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 normal class? I have no problem to call the masterpage's methods from a contentpage, but what I would like to do is someting like this... public partial class MyMaster : System.Web.UI.MasterPage
1
2041
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 the page --%> <div id="footer"> <asp:Label ID="CurrentTimeLabel" runat="server" Text="CurrentTimeLabel"> </div> When the control is not in a ContentPlaceHolder I should be able to access
0
995
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" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %> <Script runat="server"> Private Sub Insertimg(ByVal Source As Object, ByVal e As EventArgs)
3
2089
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, for example, that the Page_Load on the specific page executes before the Page_Load of its MasterPage. Is this right? But what I really want to understand is VARIABLE SCOPE, etc. between the two. For example: Is there a way for me to write code...
2
1670
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. When I run the page it is BLANK. Any ideas please??? Thanks, Kit Here is my simple aspx:
5
1742
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 between them it don't work, if the default masterpage is "onepanel.master" and try to change it in runtime, ContentPanel2 which is exist in the loaded masterpage throw exception.. the same happen if the default is "twopanel.master" and switch it...
4
1622
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 = new MasterPage(); But there is no way to do something like: MasterPage master = new MasterPage("~/default.master");
1
1755
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 2.0, the same control renders differently. <asp:radiobuttonlist id="opgAction" runat="server" BorderStyle="None" Font-Bold="False" RepeatLayout="Flow"> <asp:LISTITEM Value="A">&nbsp;&nbsp;</asp:LISTITEM> <asp:LISTITEM Selected="True"...
3
2089
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 like this:
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10491
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10247
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10031
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7571
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.