I am trying to use this master page in some aspx page and get this error.
"The page contains markup that is not valid when attached to a masterpage"
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Menu.master.cs" Inherits="ChronicApps.UI.Menu" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
Any suggestions pls?
Jaganathan BantheswaranPosted Oct 23, 2013, 5:48 AM
If you are using body tag in your child page, it will throw the error.
you have to use ContentPlaceHolder instead of body tag in child page.
Master Page:
<%@ Master Language="C#" %>
Child Page:
<% @ Page Language="C#" MasterPageFile="~/Master.master" Title="Content Page 1" %>
Main content.