I have a few master page files on a large site.
I want them all the share the same footer, but I don't want to re-enter
the footer text on all of them.
So I logically thought I could add a web user control to the master page
which would contain the footer text.
so I add:
<%@ Register TagPrefix="gn" TagName="gnfooter" Src="/gnfooter.ascx"
%>
<gn:gnfooter id="ctlFooter" runat="server" />
but I keep getting an error saying "gnfooter is not a known element".
Are user controls not allowed in master pages?
What would the alternative be to this problem?
Thanks.
Hello Stim
>I have a few master page files on a large site.
>
[quoted text clipped - 3 lines]
> So I logically thought I could add a web user control to the master page
> which would contain the footer text.
Keyword: Nested masterpages
UserControls are surely allowed on masterpages,
check your src-attribute.

Signature
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
Stimp - 11 Mar 2008 20:44 GMT
> Hello Stim
>
[quoted text clipped - 8 lines]
> UserControls are surely allowed on masterpages,
> check your src-attribute.
ah yes... "~/gnfooter.ascx" was the solution!
cheers!

Signature
fiddlewidawiddum
Peter Bucher [MVP] - 11 Mar 2008 21:56 GMT
Hello Stimp
> ah yes... "~/gnfooter.ascx" was the solution!
Fine
But, the other solution with nested masterpages is also a one to think about
:-)

Signature
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET