[Mono-list] System.Web.UI.UserControl

Carl Olsen carl at carl-olsen.com
Sun May 15 15:52:22 EDT 2005


I just tried to create a user control and got an error saying the page could
not find a .dll file.

My user control is a menu table with the following code at the top of the
page:

<%@ Control Language="c#" AutoEventWireup="false" Inherits="menu" %>
<%@ Assembly Src="menu.ascx.cs" %>

In the page where I try to include the user control, I have:

<%@ Register TagPrefix="MyUserControl" TageName="MyMenu"
Src="controls/menu.ascx" %>

And in the page, I have the tag, as:

<MyUserControl:MyMenu id="MyMenu1" runat="server"></MyUserControl:MyMenu>

Can anyone tell me if this has been implemented, or if there is a different
way of writing the various pieces of code?

Thank you!

Carl Olsen
http://www.carl-olsen.com/






More information about the Mono-list mailing list