View Single Post
Old September 8th, 2007, 10:03 AM
Torq Torq is offline
Registered User
Join Date: Sep 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap 17 error: only content controls...

Chap 17: web forms

Did I miss some major step?

I'm getting an error "only content controls are allowed directly in a content page that contains content controls." on default.aspx.

Here is the code that I have used from the website:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" ClassName="Default_aspx" title="Untitled Page" Theme="Red"%>
<asp:Content ID="Content1" ContentPlaceHolderID="cphPageContent" Runat="Server">
    <asp:TextBox ID="txtTest" Runat="server">Just some text</asp:TextBox>
    <asp:Button ID="btnTest" Runat="server" Text="Button" /></asp:Content>


Getting a number of Validation errors that attribute 'bgcolor' and 'height' is outdated adn a newer construct is recommended for the masterpage.master


Validation Element 'style' is missing from <style> on masterpage.master


Validation atribute 'height' is not a valid attribute of element 'table' on masterpage.master


Thanks in advance.