[Mono-bugs] [Bug 79309][Nor] New - The PostBack method does not work on the DropDownList if selected the first item

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 6 17:50:09 EDT 2006

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 tonyxgu at yahoo.com.


--- 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 Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: tonyxgu at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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? 
+Additional Information:
+The other List controls have same problem.
+<%@ Import namespace="System" %>
+<%@ Page Language="C#" %>
+<p>Test DropDownList</p>
+<form id="x" runat="server">
+<asp:DropDownList id="ddl1" runat="server" AutoPostBack="true"
+               <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:Label ID="label1" runat="server" />
+<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;
+    }

More information about the mono-bugs mailing list