View Single Post
  #1 (permalink)  
Old December 20th, 2009, 07:09 AM
Arya Arya is offline
Authorized User
 
Join Date: Dec 2009
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 9: Element[user control] is not a known element

Hi,
I am working on try it out on page 294. I did everything as described, but when i drag user control from solution explorer to the ContactForm.aspx page i get a following error.

Code:
<%@ Page Title="Contact Us" Language="C#" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Contact" %>

<%@ Register src="../Controls/ContactForm.ascx" tagname="ContactForm" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
  <p>
    <uc1:ContactForm ID="ContactForm1" runat="server" />
  </p>
</asp:Content>
error is: Element ContactForm is not a known element.

Can anyone figure this out?

Arya
Reply With Quote