p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 (http://p2p.wrox.com/forumdisplay.php?f=226)
-   -   Chap 17 error: only content controls... (http://p2p.wrox.com/showthread.php?t=61876)

Torq September 8th, 2007 10:03 AM

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.

All times are GMT -4. The time now is 05:45 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.