[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.

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: gonzalo at ximian.com                            
+ReportedBy: tonyxgu at yahoo.com               
+QAContact: mono-bugs at ximian.com
+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>


More information about the mono-bugs mailing list