http://bugzilla.novell.com/show_bug.cgi?id=527753
Summary: Cannot add a
System.Web.UI.HtmlControls.HtmlGenericControl on
ITemplates
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: x86-64
OS/Version: openSUSE 11.1
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.Web
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64;
x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0; .NET CLR
3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Whe you try to add an IFrame as a child control inside of an ITemplate item
(DataGridViews on ItemTemplates for example), the following error it's thrown
at runtime:
Cannot add a System.Web.UI.HtmlControls.HtmlGenericControl to CustomControl
Description: HTTP 500. Error processing request.
Stack Trace:
System.Web.HttpException: Cannot add a
System.Web.UI.HtmlControls.HtmlGenericControl to CustomControl
at System.Web.UI.CollectionBuilder.GetChildControlType (System.String
tagName, IDictionary attribs) [0x00000]
at System.Web.UI.ControlBuilder.CreateSubBuilder (System.String tagid,
System.Collections.Hashtable atts, System.Type childType,
System.Web.UI.TemplateParser parser, ILocation location) [0x00000]
at System.Web.UI.ControlBuilder.CreateSubBuilder (System.String tagid,
System.Collections.Hashtable atts, System.Type childType,
System.Web.UI.TemplateParser parser, ILocation location) [0x00000]
at System.Web.Compilation.AspGenerator.ProcessTag (ILocation location,
System.String tagid, System.Web.Compilation.TagAttributes atts, TagType
tagtype, System.Boolean& ignored) [0x00000]
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433
I tried some workarounds like to use an Literal and setting the Iframe via code
behind, but nothing works.
Reproducible: Always
Steps to Reproduce:
1. Add an GridView
2. Add a Row
3. In the Item Template add an IFrame
4. Bind to some data, could be any Bussines Class
5. Try ro run the application and use the page that contains the gridview
Actual Results:
Crashed with the error in description
Expected Results:
show the IFrame normally
--
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