473,698 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the offending non 'Content' control...?

I keep getting the message after I converted a regular aspx page to now be
based on a master page:

"Only Content controls are allowed directly in a content page that contains
Content controls."

What control, or line of Code is causing the error?

here is the offending code :

<%@ Page Language="VB" MasterPageFile= "~/MasterPage.mast er"
AutoEventWireup ="false" CodeFile="FindM ember.aspx.vb" Inherits="Defau lt2"
title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">
<table id="TABLE1" language="javas cript" onclick="return
TABLE1_onclick( )" style="width: 784px;
height: 224px">
<tr>
<td colspan="6">
</td>
<td colspan="1">
<asp:Label ID="lblHCStatus " runat="server" Font-Bold="True"
Font-Names="Arial" Font-Size="Smaller"
Height="20px" Width="312px">: </asp:Label>
<asp:TextBox ID="txtOutageEn d" runat="server"
BorderStyle="No ne" BorderWidth="1p x"
Font-Bold="True" Font-Size="Larger" Height="28px"
Visible="False" Width="195px">5/11/2006 12:00:00 AM</asp:TextBox></td>
</tr>
<tr>
<td colspan="6">
</td>
<td colspan="1">
<asp:Label ID="lblReasonCo daUnsecure" runat="server"
Font-Names="Arial" Font-Size="X-Small"
Height="28px" Width="309px">D ue to a Citrix outage, CODA
authorization has been lifted until the time above. After that time, only
authorized users will be able to access CODA</asp:Label></td>
</tr>
<tr>
<td style="width: 70px">
<asp:LinkButt on ID="lnkAppts" runat="server" Height="17px"
Width="88px">Ap pointments</asp:LinkButton> </td>
<td style="width: 83px">
<asp:LinkButt on ID="lnkCP" runat="server" Height="17px"
Width="88px">Co ntrol Panel</asp:LinkButton> </td>
<td colspan="3">
</td>
</tr>
<tr>
<td colspan="5">
</td>
</tr>
<tr>
<td nowrap="nowrap" style="width: 70px; height: 21px">
<asp:Label ID="lblNameMRN " runat="server" Font-Names="Arial"
Font-Size="Smaller"
Height="16px" Width="96px">Na me/MRN</asp:Label></td>
<td style="width: 83px; height: 21px">
<asp:TextBox ID="txtNAME_ID " runat="server" TabIndex="1"
Width="128px"></asp:TextBox></td>
<td style="width: 36px; height: 21px">

<asp:Label ID="Label2" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="24px"
Width="32px">Se x</asp:Label></td>
<td style="width: 83px; height: 21px">
<asp:DropDownLi st ID="cmb_Sex" runat="server" Height="24px"
TabIndex="4" Width="72px">
<asp:ListItem Value="F">F</asp:ListItem>
<asp:ListItem Value="M">M</asp:ListItem>
<asp:ListItem Selected="True" ></asp:ListItem>
</asp:DropDownLis t></td>
<td style="height: 21px">
</td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
<asp:Label ID="Label1" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="8px"
Width="96px">SS N:</asp:Label></td>
<td style="width: 83px; height: 8px">
<asp:TextBox ID="txt_SSN" runat="server" TabIndex="2"
Width="128px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
<asp:Label ID="lblDOB" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="16px"
Width="80px">DO B:</asp:Label></td>
<td style="width: 83px; height: 8px">
<asp:TextBox ID="txt_DOB" runat="server" TabIndex="3"
Width="128px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
</td>
</tr>
<tr>
<td colspan="6" rowspan="1" style="height: 21px">
</td>
</tr>
<tr>
<td colspan="6" rowspan="3" style="height: 2px">

</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td style="width: 70px; height: 76px">
</td>
<td colspan="5" style="border-right: #0073a4 1px solid;
border-top: #0073a4 1px solid;
border-left: #0073a4 1px solid; border-bottom: #0073a4 1px
solid; height: 76px">
<asp:Label ID="lblStatus" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="50px"
Style="border-top-width: thin; border-left-width: thin;
border-left-color: royalblue;
border-bottom-width: thin; border-bottom-color:
royalblue; vertical-align: middle;
border-top-color: royalblue; text-align: center;
border-right-width: thin; border-right-color: royalblue"
Width="480px">T o select a member, enter any known
information in the fields above and click the "Find Member" button to
continue</asp:Label></td>
</tr>
<tr>
<td colspan="2" rowspan="2">
</td>
<td colspan="4" style="height: 8px">
<asp:Label ID="lblCurrent " runat="server" Font-Bold="True"
Font-Names="Arial" Font-Size="XX-Small"
ForeColor="Red" Height="16px" Width="310px">D ata Current
as of: 5/10/2006 6:10 PM</asp:Label></td>
</tr>
<tr>
<td style="width: 36px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
<asp:Button ID="cmdSearchMe mber" runat="server"
Height="32px" Text="Find Member"
Width="96px" /></td>
<td style="width: 150px; height: 8px">
<asp:Button ID="cmdClear" runat="server" Height="32px"
Text="Clear" Width="96px" /></td>
</tr>
<tr>
<td colspan="2" style="height: 8px">
</td>
<td colspan="3" rowspan="3">
</td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
<asp:Label ID="lbl_ReadPre v" runat="server"
Width="106px"></asp:Label></td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
<asp:LinkButt on ID="lnkAdmin" runat="server" Height="17px"
Visible="False" Width="79px">Us er Admin</asp:LinkButton> </td>
</tr>
<tr>
<td style="width: 70px; height: 45px">
</td>
<td colspan="4" style="height: 45px">
<asp:Label ID="lblUserInfo " runat="server" Font-Bold="True"
Font-Names="Arial Narrow"
Font-Size="Small" Height="20px" Style="font-weight:
bolder; font-size: smaller;
font-family: Arial" Width="471px">L abel</asp:Label></td>
</tr>
<tr>
<td colspan="5" style="height: 8px">
</td>
</tr>
<tr>
<td style="width: 70px; height: 12px">
</td>
<td colspan="4" style="height: 12px">
<asp:Label ID="Label3" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="72px"
Width="472px">T he materials on this webpage are private
and may contain Protected Health Information. Be advised that any
unauthorized use, disclosure, copying, distribution or the taking of any
action in reliance on the contents of this information is strinctly
prohibited. Even so, all further inquiries will be tracked using the NUID
above and/or machine name.</asp:Label></td>
</tr>
<tr>
<td colspan="5" rowspan="2">
</td>
</tr>
<tr>
</tr>
<tr>
<td colspan="5" rowspan="1">
</td>
</tr>
<tr>
<td colspan="5" rowspan="1">
</td>
</tr>
<tr>
</tr>
</table>
</asp:Content>
Jan 26 '07 #1
1 1736
Hi there,

There must be something wrong with @page declaration as the parser doesn't
seem to treat current page to have master page assigned

<%@ Page Language="VB"
MasterPageFile= "~/MasterPage.mast er"
AutoEventWireup ="false" CodeFile="FindM ember.aspx.vb" Inherits="Defau lt2"

make sure Inherits attribute is set to a class that is defined to represent
page in FindMember.aspx .vb (i recon you mixed them up while converting)

Hope this helps

--
Milosz
"jonefer" wrote:
I keep getting the message after I converted a regular aspx page to now be
based on a master page:

"Only Content controls are allowed directly in a content page that contains
Content controls."

What control, or line of Code is causing the error?

here is the offending code :

<%@ Page Language="VB" MasterPageFile= "~/MasterPage.mast er"
AutoEventWireup ="false" CodeFile="FindM ember.aspx.vb" Inherits="Defau lt2"
title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">
<table id="TABLE1" language="javas cript" onclick="return
TABLE1_onclick( )" style="width: 784px;
height: 224px">
<tr>
<td colspan="6">
</td>
<td colspan="1">
<asp:Label ID="lblHCStatus " runat="server" Font-Bold="True"
Font-Names="Arial" Font-Size="Smaller"
Height="20px" Width="312px">: </asp:Label>
<asp:TextBox ID="txtOutageEn d" runat="server"
BorderStyle="No ne" BorderWidth="1p x"
Font-Bold="True" Font-Size="Larger" Height="28px"
Visible="False" Width="195px">5/11/2006 12:00:00 AM</asp:TextBox></td>
</tr>
<tr>
<td colspan="6">
</td>
<td colspan="1">
<asp:Label ID="lblReasonCo daUnsecure" runat="server"
Font-Names="Arial" Font-Size="X-Small"
Height="28px" Width="309px">D ue to a Citrix outage, CODA
authorization has been lifted until the time above. After that time, only
authorized users will be able to access CODA</asp:Label></td>
</tr>
<tr>
<td style="width: 70px">
<asp:LinkButt on ID="lnkAppts" runat="server" Height="17px"
Width="88px">Ap pointments</asp:LinkButton> </td>
<td style="width: 83px">
<asp:LinkButt on ID="lnkCP" runat="server" Height="17px"
Width="88px">Co ntrol Panel</asp:LinkButton> </td>
<td colspan="3">
</td>
</tr>
<tr>
<td colspan="5">
</td>
</tr>
<tr>
<td nowrap="nowrap" style="width: 70px; height: 21px">
<asp:Label ID="lblNameMRN " runat="server" Font-Names="Arial"
Font-Size="Smaller"
Height="16px" Width="96px">Na me/MRN</asp:Label></td>
<td style="width: 83px; height: 21px">
<asp:TextBox ID="txtNAME_ID " runat="server" TabIndex="1"
Width="128px"></asp:TextBox></td>
<td style="width: 36px; height: 21px">

<asp:Label ID="Label2" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="24px"
Width="32px">Se x</asp:Label></td>
<td style="width: 83px; height: 21px">
<asp:DropDownLi st ID="cmb_Sex" runat="server" Height="24px"
TabIndex="4" Width="72px">
<asp:ListItem Value="F">F</asp:ListItem>
<asp:ListItem Value="M">M</asp:ListItem>
<asp:ListItem Selected="True" ></asp:ListItem>
</asp:DropDownLis t></td>
<td style="height: 21px">
</td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
<asp:Label ID="Label1" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="8px"
Width="96px">SS N:</asp:Label></td>
<td style="width: 83px; height: 8px">
<asp:TextBox ID="txt_SSN" runat="server" TabIndex="2"
Width="128px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
<asp:Label ID="lblDOB" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="16px"
Width="80px">DO B:</asp:Label></td>
<td style="width: 83px; height: 8px">
<asp:TextBox ID="txt_DOB" runat="server" TabIndex="3"
Width="128px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
</td>
</tr>
<tr>
<td colspan="6" rowspan="1" style="height: 21px">
</td>
</tr>
<tr>
<td colspan="6" rowspan="3" style="height: 2px">

</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td style="width: 70px; height: 76px">
</td>
<td colspan="5" style="border-right: #0073a4 1px solid;
border-top: #0073a4 1px solid;
border-left: #0073a4 1px solid; border-bottom: #0073a4 1px
solid; height: 76px">
<asp:Label ID="lblStatus" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="50px"
Style="border-top-width: thin; border-left-width: thin;
border-left-color: royalblue;
border-bottom-width: thin; border-bottom-color:
royalblue; vertical-align: middle;
border-top-color: royalblue; text-align: center;
border-right-width: thin; border-right-color: royalblue"
Width="480px">T o select a member, enter any known
information in the fields above and click the "Find Member" button to
continue</asp:Label></td>
</tr>
<tr>
<td colspan="2" rowspan="2">
</td>
<td colspan="4" style="height: 8px">
<asp:Label ID="lblCurrent " runat="server" Font-Bold="True"
Font-Names="Arial" Font-Size="XX-Small"
ForeColor="Red" Height="16px" Width="310px">D ata Current
as of: 5/10/2006 6:10 PM</asp:Label></td>
</tr>
<tr>
<td style="width: 36px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
<asp:Button ID="cmdSearchMe mber" runat="server"
Height="32px" Text="Find Member"
Width="96px" /></td>
<td style="width: 150px; height: 8px">
<asp:Button ID="cmdClear" runat="server" Height="32px"
Text="Clear" Width="96px" /></td>
</tr>
<tr>
<td colspan="2" style="height: 8px">
</td>
<td colspan="3" rowspan="3">
</td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
<asp:Label ID="lbl_ReadPre v" runat="server"
Width="106px"></asp:Label></td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
<asp:LinkButt on ID="lnkAdmin" runat="server" Height="17px"
Visible="False" Width="79px">Us er Admin</asp:LinkButton> </td>
</tr>
<tr>
<td style="width: 70px; height: 45px">
</td>
<td colspan="4" style="height: 45px">
<asp:Label ID="lblUserInfo " runat="server" Font-Bold="True"
Font-Names="Arial Narrow"
Font-Size="Small" Height="20px" Style="font-weight:
bolder; font-size: smaller;
font-family: Arial" Width="471px">L abel</asp:Label></td>
</tr>
<tr>
<td colspan="5" style="height: 8px">
</td>
</tr>
<tr>
<td style="width: 70px; height: 12px">
</td>
<td colspan="4" style="height: 12px">
<asp:Label ID="Label3" runat="server" Font-Names="Arial"
Font-Size="Smaller" Height="72px"
Width="472px">T he materials on this webpage are private
and may contain Protected Health Information. Be advised that any
unauthorized use, disclosure, copying, distribution or the taking of any
action in reliance on the contents of this information is strinctly
prohibited. Even so, all further inquiries will be tracked using the NUID
above and/or machine name.</asp:Label></td>
</tr>
<tr>
<td colspan="5" rowspan="2">
</td>
</tr>
<tr>
</tr>
<tr>
<td colspan="5" rowspan="1">
</td>
</tr>
<tr>
<td colspan="5" rowspan="1">
</td>
</tr>
<tr>
</tr>
</table>
</asp:Content>

Jan 26 '07 #2

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

Similar topics

4
3837
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I compile with g++-3.2 it compiles and works fine, on another computer, whether I compile with g++-3.0 or g++-2.95 (unfortunately 3.2 is not available) it crashes with a segmentation violation on runtime.
47
9139
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
1
1014
by: murphy | last post by:
My release version of an asp.net has started throwing a NullReferenceException. I get a stack trace in my browser that looks like this: QHOS.MUser.ResetUI(String curUserName) +143 QHOS.MUser.Page_Load(Object sender, EventArgs e) +72 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +744
0
2626
by: David | last post by:
In ASP.NET 2.0, is it possible to use a control that's on a Master Page as a select parameter in a content page's datasource control? For example, the Master Page has a drop down list of Departments. Content pages are various Department reports listed in a TreeView control on the Master Page. From the content page in the VWD Configure Data Source wizard (which I love!), I was disappointed when adding a WHERE clause that the Control ID list...
2
1388
by: ghostwolf | last post by:
Hi, I've created a Master Page and there is another page "A.aspx" which links to this Master Page. But why I can't drag n drop the Control from the Toolbox to the "ContentPlaceHolder" in "A.aspx". As I know, the Master Page is as a template of other pages, that means, we can use this template to create several pages with different details. Thus, it should be allowed to me for putting different items in the A.aspx. Thanks in millions.
1
3181
by: Priya | last post by:
Hi , I'm creating a custom control for a web project. I wanted to add flash content as part of that control. How do i do that in C# file. Pls help. Thanks in advance, Priya
3
2107
by: MikeB | last post by:
Hello, I have a content page that is from a Master page which has 2 content panes. How do I add my forms to the content page? Each pane needs a form but you can not have multiple form tags nor can the form tages be outside of the content tags? Does this make since? Below is my source to the pages. Basically I need both content tags to have form tags.
4
3866
by: Ty | last post by:
Hello all, I am creating a web site with Visual Stuido 2008. I am trying to use a java script file to create a busybox for login from this page http://blogs.crsw.com/mark/articles/642.aspx. I am using a master page senerio. The erro I'm getting is 'busyBox' is not a member of 'ASP.login2_aspx'
1
1218
by: Michael Nemtsev [MVP] | last post by:
Hello gerry, Everything ok with your code - it works fine and I see controls in designer - i just rebuld project and everything okey-dokey As I understand u are using VS 2008. Try to install the VS 2008 hotfix - it was shiped this february. google to find it ---
0
8675
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
8604
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
9029
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...
1
8897
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
8862
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
7729
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
5860
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
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2331
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.