User controls in a master page error...

Joined
Jul 31, 2007
Messages
1
Reaction score
0
Hi,

I have a few user controls I'm trying to insert into a master page. It won't compile, complaining for each that "Element {X} is not a known element. This can occur if there is a compilation error in the Web site."

However, if I look at it in the design view, all the controls are right where they should be, populated with the data I'd expect.

Code:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="consumer.master.cs" Inherits="consumer_consumer" %>
<%@ Register TagPrefix="biz" TagName="Header" Src="~/header.ascx" %>
<%@ Register TagPrefix="biz" TagName="Menu" Src="~/menu.ascx" %>
<%@ Register TagPrefix="biz" TagName="Footer" Src="~/footer.ascx" %>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" >
<body>
    <form id="form1" runat="server">
        <biz:Header id="header1" runat="server" />
        <biz:Menu id="menu1" runat="server" />

Any ideas? Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top