Error with masterpage

Posted by Raphyboy on Stack Overflow See other posts from Stack Overflow or by Raphyboy
Published on 2010-04-15T01:18:26Z Indexed on 2010/04/15 1:23 UTC
Read the original article Hit count: 541

Filed under:
|

Hi,

i'm creating a brand new masterpage with VS2010 Beta 2 and I get this warning (that causes me errors in the content pages):

Validation (XHTML 1.0 Transitional): Content is not supported outside 'script' or 'asp:content' regions.

The masterpage's code :

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Bob.master.cs" Inherits="TShirtFactory.Web.All.Core.lib.masterpage.Bob" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

As you can see, it's the default masterpage generated code. I get the warning when I hover the tag at top. Does anybody have an idea of what's going on ?

Thank you

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about masterpage