The directive 'page' is unknown.
Posted on 2007-04-03
Following along in my book, and I was instructed to add my first user control.
I did so - it only includes an <h1> header.
Then, I followed the instructions to update an existing file (which 'was' working fine).
The 'only' changes I made, as instructed, were to add (the indented lines were already there):
<%@ Page Language="VB" %>
<%@ Register TagPrefix="WroxUnited" TagName="SimpleHeader" Src="SimpleHeader.ascx" %>
<%@ import Namespace="System.Web.Caching" %>
And then further down into my html code,
<WroxUnited:SimpleHeader id="HeaderControl" runat="server"></WroxUnited:SimpleHeader>
Now I'm getting the page directive is unknown?
I swear - I can take those 3 lines out and it runs fine...what happened? : \