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

G

Guest

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>
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top