[Mono-bugs] [Bug 658872] New: Button in ItemTemplate of RadListBox causes System.Web.HttpException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 10 14:30:58 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=658872
https://bugzilla.novell.com/show_bug.cgi?id=658872#c0
Summary: Button in ItemTemplate of RadListBox causes
System.Web.HttpException
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: jmilillo at aviorcomputing.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=404402)
--> (http://bugzilla.novell.com/attachment.cgi?id=404402)
Multiple Controls with same ID project
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)
Given a RadListBox with an ImageButton defined in the ItemTemplate, a
System.Web.HttpException "Multiple controls with the same ID 'i0' were found.
FindControl requires that controls have unique IDs." is thrown on postback.
This works correctly in .Net.
There was a mention of a similar issue in bug 649546. The fix for that bug did
not fix this issue.
Reproducible: Always
Steps to Reproduce:
1. Open project and click one of the ImageButtons in the RadListBox
OR
2. Click on the asp Button below the RadListBox
Actual Results:
Error page with this stack trace:
System.Web.HttpException: Multiple controls with the same ID 'i0' were found.
FindControl requires that controls have unique IDs.
at System.Web.UI.Control.FillControlCache (System.Web.UI.ControlCollection
controls) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.EnsureControlsCache () [0x00000] in <filename
unknown>:0
at System.Web.UI.Control.LookForControlByName (System.String id) [0x00000] in
<filename unknown>:0
at System.Web.UI.Control.FindControl (System.String id, Int32 pathOffset)
[0x00000] in <filename unknown>:0
at System.Web.UI.Control.FindControl (System.String id, Int32 pathOffset)
[0x00000] in <filename unknown>:0
at System.Web.UI.Control.FindControl (System.String id) [0x00000] in
<filename unknown>:0
at System.Web.UI.Page.FindControl (System.String id) [0x00000] in <filename
unknown>:0
at System.Web.UI.Page.FindControl (System.String id, Boolean decode)
[0x00000] in <filename unknown>:0
at System.Web.UI.Page.ProcessPostData
(System.Collections.Specialized.NameValueCollection data, Boolean second)
[0x00000] in <filename unknown>:0
at System.Web.UI.Page.ProcessPostData () [0x00000] in <filename unknown>:0
at System.Web.UI.Page.InternalProcessRequest () [0x00000] in <filename
unknown>:0
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000] in <filename unknown>:0
Expected Results:
Postback should happen and page refresh.
--
Configure bugmail: https://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