Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > User controls in a master page error...

Reply
Thread Tools

User controls in a master page error...

 
 
garann garann is offline
Junior Member
Join Date: Jul 2007
Posts: 1
 
      07-31-2007
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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Access Master Page Controls from page.aspx doesn't inherit from master SerpentKiss2010 ASP .Net 0 04-06-2011 02:46 PM
Dynamically program User controls in a Master page from a content page Dinu ASP .Net 1 07-31-2007 11:56 AM
Can a master page be built from another master page Zeba ASP .Net 1 02-22-2007 10:55 AM
Master Pages Great! But what about Master User Controls? Electrified Research ASP .Net 5 10-11-2005 02:32 PM
seeking servlet "Master" keep getting "Master/servlet/Master" not found. Tomcat 5.0.25 Doug McCann Java 1 08-05-2004 09:16 PM



Advertisments