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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78339 --- shadow/78339 2006-05-08 23:01:37.000000000 -0400 +++ shadow/78339.tmp.16645 2006-05-08 23:01:37.000000000 -0400 @@ -0,0 +1,37 @@ +Bug#: 78339 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Sys.Web +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: [2.0] RadioButtonList OnSelectedIndexChanged called when it shouldn't be + +The attached default.aspx shows a bug where the OnSelectIndexChanged +handler of RadioButtonList is called after submitting the form by clicking +a button or another control that submits the form. + +To reproduce the bug, please do: + +1. Click one of the radio buttons, the form gets auto submitted +2. Click the "Go fish" button. Observe that the OnSelectedIndexChanged +event gets generated each time you do that. + +#2 should not happen at all for lists with AutoPostBack set, since the auto +postback resets the control "changed" state. This is precisely how MS.NET +and Mono ASP.NET 1.1 work. + +It seems the problem lies in the ListControl.SelectedIndex property getter +- whenever LoadPostData on RadioButtonList is called, SelectedIndex is -1 +and thus need_raise gets set to true for RadioButtonList. I don't know why +it isn't happening for ASP.NET 1.1, though - the code is the same for both +versions. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
