[Mono-list] System.Web.UI.UserControl (corrected spelling)

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon May 16 17:36:10 EDT 2005

On Sun, 2005-05-15 at 15:57 -0500, Carl Olsen wrote:
> 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" TagName="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?

This has been working for years now.

Perhaps if you post attach the files you're using and detail what you're
doing, what you get and what would you expect someone could help you.


More information about the Mono-list mailing list