Hi Michael...
Thanks for your reply..
No I havn't copied ASP code or renamed the file..
Here is the code for the page:
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="SiteHeader.ascx.vb" Inherits="COLT.ThePhile.Web.Controls.User.SiteHead er" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<link href="/msowa/thephile/Styles/ThePhile.css" rel="stylesheet">
<table width="100%" border="0" class="Site_Header">
<tr>
<td width="50%">
<a href="/msowa/thephile/default.aspx">
<img src="/msowa/ThePhile/images/ThePhile.gif" border=0 alt="ThePhile.COM">
</a>
</td>
</tr>
</table>
and the code behind is: (I removed the auto generated region for clarity)
Namespace ThePhile.Web.Controls.User
Public Class SiteHeader
Inherits System.Web.UI.UserControl
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
End Class
End Namespace
The control is used like the following...
<%@ Register TagPrefix="COLTUserControl" TagName="SiteHeader" Src="Controls/User/Siteheader.ascx" %>
with a
<COLTUserControl:SiteHeader id="Header" runat="Server" /> further into the page....
and that is on a normal web page default.aspx
This is all from the Wrox book I am working through...One thing that I did do was rename my namespace root....would this cause the error..? I started of using the Wrox namespace name but changed it to my company name....
I am actually thinking about starting from scratch....