[Mono-bugs] [Bug 76385][Nor] New - ListBox.Attributes.Add method not working

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 9 10:22:41 EDT 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bugzilla at jschlesinger.net.


--- shadow/76385	2005-10-09 10:22:40.000000000 -0400
+++ shadow/76385.tmp.20621	2005-10-09 10:22:40.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 76385
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: bugzilla at jschlesinger.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: ListBox.Attributes.Add method not working
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When using a ListBox web control and using the attributes add method to add
+client side code, the client side code is not generated. 
+Steps to reproduce the problem:
+1. Add a ListBox control to a web form and populate it with some items.
+2. In the Page_Load event add the following code:
+ListBox1.Attributes.Add("onChange", "alert('on change occurred');");
+Actual Results:
+Nothing happens on onChange
+Expected Results:
+The client side cdoe should have an alert method for the onChange event
+which would cause the browser to show an alert when the selected item in
+the ListBox is changed.
+How often does this happen? 
+Additional Information:
+I have tested this with the Button and DropDownList classes which both work
+as expected.

More information about the mono-bugs mailing list