[Mono-list] New codebehind issue

David B. Bitton david@codenoevil.com
Mon, 06 Jan 2003 14:01:23 -0500


I'll put a test case together, but here's a quick answer.  This is how 
the controls are registered on the page:

---

<%@ Page Language="C#" inherits="eZine.Framework.CodeBehind.index" 
EnableSessionState="false" %>
<%@ Register TagPrefix="ez" TagName="header" Src="uc_header.ascx" %>
<%@ Register TagPrefix="ez" TagName="vertical_nav" 
Src="uc_vertical_nav.ascx" %>
<%@ Register TagPrefix="ez" TagName="footer" Src="uc_footer.ascx" %>
<%@ Register TagPrefix="ez" TagName="signup" 
Src="uc_newsletter_signup.ascx" %>

---

Gonzalo Paniagua Javier wrote:
> El lun, 06-01-2003 a las 18:40, David B. Bitton escribió:
> 
>>Thanks for the quick fix.  This is the next error:
>>
>>---
>>
>>System.Web.HttpException:  ---> System.ArgumentException: Key 
>>duplication when adding: ez
> 
> [...]
> 
>>There are multiple controls on the page that use the "ez:" prefix.
>>
> 
> 
> Do all of them register the same prefix for the same namespace/assembly
> or tagname/src?
> 
> If so, can you please test what happens unedr MS if one of the controls
> register the 'ez' prefix with a different namespace/assembly or
> tagname/src and tell me if it gives any error?
> 
> Also a test case and/or a bugzilla report would be greatly appreciated.
> 
> Thanks!
> 
> -Gonzalo
> 
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 


-- 
David B. Bitton
david@codenoevil.com
www.codenoevil.com

Code Made Fresh Daily™