http://bugzilla.novell.com/show_bug.cgi?id=527753

User [email protected] added comment
http://bugzilla.novell.com/show_bug.cgi?id=527753#c1


Francisco Lomas <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Found By|---                         |Community User




--- Comment #1 from Francisco Lomas <[email protected]>  2009-08-03 19:29:59 
MDT ---
I found the exact code in Mono, and it's designed to throw the exception, I
read it and I found it logical, in CollectionBuilder.cs:

public override Type GetChildControlType (string tagName, IDictionary attribs)
{
    Type t = Root.GetChildControlType (tagName, attribs);
    if (elementType != null && !elementType.IsAssignableFrom (t)) 
        throw new HttpException ("Cannot add a " + t + " to " + elementType);

    return t;
}

In my case, the elementType is an Object and t is an HtmlGenericControl, I
guess that is right that can't assing an object to an HtmlGenerciControl, but
in MS .NET Framework it's working right without a problem, maybe a more complex
verification is needed...

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to