
Signature
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
Without seeing your codefile, I'm first curious to your Inherits property.
>> Inherits="AFBE.titlebanner"
I'm assuming that your class is called either AFBE or titlebanner, not AFBE.titlebanner.
As far as I know, you cannot reference a class underneath the control's
UserControl inherited class (the myControl class in the example below).
For a simplistic example, if I have a control called myControl that returns
a simple text box:
myControl.ascx
--
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="myControl.ascx.cs"
Inherits="myControl" %>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
--
myControl.ascx.cs
--
using System;
public partial class myControl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
TextBox1.Text = "Hello there, this is a test!";
}
}
--
This control is then called on my web page via, Default.aspx, by the following:
--
<%@ Register Src="~/myControl.ascx" TagPrefix="DRL" TagName="myControl" %>
...
...
<form id="form1" runat="server">
<div>
<DRL:myControl runat="server" ID="mynewcontrol" />
</div>
</form>
--
-dl
---
David Longnecker
Web Developer
http://blog.tiredstudent.com
> I am revieving the following error for one of my controls when loading
> any pages that use it:
[quoted text clipped - 35 lines]
> The usercontrol itself is just an HTML table that contains 2
> imagemaps. What could be the problem? Thanks.