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=79309 --- shadow/79309 2006-09-06 17:50:09.000000000 -0400 +++ shadow/79309.tmp.26112 2006-09-06 17:50:09.000000000 -0400 @@ -0,0 +1,75 @@ +Bug#: 79309 +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: The PostBack method does not work on the DropDownList if selected the first item + +Please fill in this template when reporting a bug, unless you know what you +are doing. +Description of Problem: + + +Steps to reproduce the problem: +1. Create a aspx file which has a DropDownList with the postBack on. +2. To randon select the item in the list +3. (Try the sample testddl.aspx as the following) + +Actual Results: +When change the selection to the first item, the postBack method doen't work. + +Expected Results: +It should work on every item. + +How often does this happen? +Always + +Additional Information: +The other List controls have same problem. + + +testddl.aspx: +<%@ Import namespace="System" %> +<%@ Page Language="C#" %> + +<html> +<head/> +<body> +<center> +<p>Test DropDownList</p> +<form id="x" runat="server"> +<asp:DropDownList id="ddl1" runat="server" AutoPostBack="true" +OnSelectedIndexChanged="ddl1_OnSelectedIndexChanged"> + <asp:ListItem value="0">A</asp:ListItem> + <asp:ListItem value="1">B</asp:ListItem> + <asp:ListItem value="2">C</asp:ListItem> + <asp:ListItem value="3">D</asp:ListItem> + <asp:ListItem value="4">E</asp:ListItem> + <asp:ListItem value="5">F</asp:ListItem> +</asp:DropDownList> +<P/> +<asp:Label ID="label1" runat="server" /> +</form> +</center> +</body> +</html> + +<script runat="server"> + protected void ddl1_OnSelectedIndexChanged(object sender, EventArgs e) + { + this.Response.Output.WriteLine("The method +ddl1_OnSelectedIndexChanged is called."); + label1.Text = "Your selected index is " + ddl1.SelectedIndex; + } +</script> _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
