[Mono-bugs] [Bug 527753] Cannot add a System.Web.UI.HtmlControls.HtmlGenericControl on ITemplates

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 3 21:30:02 EDT 2009


User xlomas at kruger.com.ec added comment

Francisco Lomas <xlomas at kruger.com.ec> changed:

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

--- Comment #1 from Francisco Lomas <xlomas at kruger.com.ec>  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.

More information about the mono-bugs mailing list