473,811 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MasterPage shows blank page in IE browser???

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.mast er"
AutoEventWireup ="false" CodeFile="MainM enu.aspx.vb" Inherits="MainM enu"
title="MainMenu " %>
<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 1671
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).

--
Patrice

"K B" <ka**********@c omcast.net> a écrit dans le message de news:
uY************* @TK2MSFTNGP02.p hx.gbl...
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.mast er"
AutoEventWireup ="false" CodeFile="MainM enu.aspx.vb" Inherits="MainM enu"
title="MainMenu " %>
<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 #2
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.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title></head>
<body>
<form name="aspnetFor m" method="post" action="MainMen u.aspx"
id="aspnetForm" >
<div>
<input type="hidden" name="__VIEWSTA TE" id="__VIEWSTATE "
value="/wEPDwUKMTA5NjQ3 MzE0NWRkkVJHdEJ N5zt/ErdeX7OHNG8+2cs =" />
</div>

<div>
<table width="100%">
<tr>
<td width="20%">
</td>
<td style="width: 461px">
<span id="ctl00_Label 2"
style="display: inline-block;color:Med iumSeaGreen;fon t-family:Arial;fo nt-
size:XX-Large;width:625 px;">Endpoint Research Help Desk</span></td>
</tr>
</table>
<br />
<table width="100%">
<tr>
<td valign="top" width="20%">

<span id="ctl00_cphLe ft_Label1">Labe l</span>

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

<span id="ctl00_cphRi ght_Label2">Lab el</span>

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

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

Thanks,
Kit

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

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

Similar topics

9
3166
by: news | last post by:
I'm working on a new site for my wife's college art organization: http://www.ie-studios.net/mci/ and I'm having a problem where a PDF in an IFrame is supposed to go "invisible" (and in fact is supposed to be hidden by default) but it's always there. I already validated the page with w3c.org and it's OK with it. I know layers and iframes aren't good ideas. But, layers is the best I could come up with to do what they want with overlaps...
2
1142
by: Arjen | last post by:
Hi, My mastepage can use two css files. Now page 1 needs to use the masterpage with css file 1 and page 2 needs to use the masterpage with css file 2. How can the page say that it wants to use css file 1 or 2? I don't want to add the css file inside the pages. I hope that this is posible with a simple setting in this line:
3
1997
by: Keith Patrick | last post by:
I'd like to get some semblance of SmartNavigation-like behavior in a MasterPage-based content navigation app (primarily the lack of "flicker") I had it working in a version that used a MultiView instead of a true MasterPage layout, but it wasn't conducive to the SiteMap that I use throughout. The MasterPage paradigm is a good fit for the style of app, and everything else works perfectly except I'd prefer to stop the flickering. Since I...
4
2363
by: Alexander Widera | last post by:
Hi, it is possible to set the browser dependent masterpage in the web.config, and how? in the page attributes it is an easy way, but in the web.config? In the page-tag it would look like this: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ie:MasterPageFile="~/MasterPage_IE.master"
3
2092
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
1926
by: K B | last post by:
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"...
6
6175
by: =?Utf-8?B?QmVuIFIu?= | last post by:
Hi, WHen I specify my master page in the page's @Page directive, no problems. However, when I put it ias an attribute in Web.config's page element, the designer fails. It just says "Error Creating Control - Content. Content controsl can only be used in a content page." I know that there's an issue w/ nested masters, but I'm only trying to use one. Interestingly, if I run the site, it builds and displays properly despite this error. Any...
2
9006
by: Frank Milverckowitz | last post by:
Hi, New to .NET... question about Masterpages vs. using Frameset I'm using Visual Studio 2005 and notice that the generated pages are of DTD/Doctype that don't support framesets. To use framesets I will be changing all pages to HTML 4.0 loose.dtd. I have a demand from my boss to use framesets to create a "keep-alive" feature using a parent frame + ajax call on a time interval. (i.e. have the
3
3530
by: Tor Inge Rislaa | last post by:
I have a MasterPage containing a TreeView menu. When clicking a menu item, a page is loaded into the ContentPlaceHolder. It seems like both the MasterPage and the page in the ContentPlaceHolder is refreshed when clicking the menu item. That might be how it is supposed to be, but the problem is that the menu in the masterpage returns to it's origin state where all the nodes are collapsed. Is there a way to avoid this from happening? ...
0
9605
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
10648
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...
0
10389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10135
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...
0
9205
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5554
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...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.