By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,189 Members | 2,167 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,189 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.master"
AutoEventWireup="false" CodeFile="FindMember.aspx.vb" Inherits="Default2"
title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table id="TABLE1" language="javascript" 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="txtOutageEnd" runat="server"
BorderStyle="None" BorderWidth="1px"
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="lblReasonCodaUnsecure" runat="server"
Font-Names="Arial" Font-Size="X-Small"
Height="28px" Width="309px">Due 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:LinkButton ID="lnkAppts" runat="server" Height="17px"
Width="88px">Appointments</asp:LinkButton></td>
<td style="width: 83px">
<asp:LinkButton ID="lnkCP" runat="server" Height="17px"
Width="88px">Control 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">Name/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">Sex</asp:Label></td>
<td style="width: 83px; height: 21px">
<asp:DropDownList 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:DropDownList></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">SSN:</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">DOB:</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">To 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">Data 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="cmdSearchMember" 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_ReadPrev" runat="server"
Width="106px"></asp:Label></td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
<asp:LinkButton ID="lnkAdmin" runat="server" Height="17px"
Visible="False" Width="79px">User 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">Label</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">The 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
Share this Question
Share on Google+
1 Reply


P: n/a
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.master"
AutoEventWireup="false" CodeFile="FindMember.aspx.vb" Inherits="Default2"

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.master"
AutoEventWireup="false" CodeFile="FindMember.aspx.vb" Inherits="Default2"
title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table id="TABLE1" language="javascript" 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="txtOutageEnd" runat="server"
BorderStyle="None" BorderWidth="1px"
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="lblReasonCodaUnsecure" runat="server"
Font-Names="Arial" Font-Size="X-Small"
Height="28px" Width="309px">Due 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:LinkButton ID="lnkAppts" runat="server" Height="17px"
Width="88px">Appointments</asp:LinkButton></td>
<td style="width: 83px">
<asp:LinkButton ID="lnkCP" runat="server" Height="17px"
Width="88px">Control 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">Name/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">Sex</asp:Label></td>
<td style="width: 83px; height: 21px">
<asp:DropDownList 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:DropDownList></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">SSN:</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">DOB:</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">To 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">Data 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="cmdSearchMember" 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_ReadPrev" runat="server"
Width="106px"></asp:Label></td>
</tr>
<tr>
<td style="width: 70px; height: 8px">
</td>
<td style="width: 83px; height: 8px">
<asp:LinkButton ID="lnkAdmin" runat="server" Height="17px"
Visible="False" Width="79px">User 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">Label</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">The 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 discussion thread is closed

Replies have been disabled for this discussion.