473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.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
1 1721
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
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...
47
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
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...
0
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...
2
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"....
1
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
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...
4
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...

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.