[Mono-bugs] [Bug 79516][Wis] Changed - Postback issue

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Oct 5 19:40:46 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 david_garcia at logitech.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79516

--- shadow/79516	2006-10-05 16:12:10.000000000 -0400
+++ shadow/79516.tmp.18690	2006-10-05 19:40:46.000000000 -0400
@@ -82,6 +82,76 @@
     }
     
 
 ------- Additional Comments From gonzalo at ximian.com  2006-10-05 16:12 -------
 I'm glad that you confirmed the bug on linux, but I still need a test
 case.
+
+------- Additional Comments From david_garcia at logitech.com  2006-10-05 19:40 -------
+Click on the two list boxes, after which  make a different selection 
+in the listboxs, both listboxs events will be called regardless of 
+which one was clicked.
+
+OS: Ubunto/Debian, Solaris
+MONO: ALL LINUX DISTRO 1.1.17.2
+
+
+
+
+<%@ Page Language="C#" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
+Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
+transitional.dtd">
+
+<script runat="server">
+void someevent(object sender,EventArgs e)
+{
+//Left nor left work???
+
+ if(divOut.Style["Left"]=="100px") //always false, regardless
+    divOut.Style["Left"]="0px";
+  else
+    divOut.Style["Left"]="100px"; //this will always be the case
+
+  if(divOut.Style["Left"]=="100px") //always true
+   Response.Write("????");
+}
+
+protected void  ListBox1_SelectedIndexChanged(object sender, 
+EventArgs e)
+{
+        Response.Write(((ListBox)sender).Text );
+}
+</script>
+
+<html xmlns="http://www.w3.org/1999/xhtml" >
+<head runat="server">
+    <title>Untitled Page</title>
+</head>
+<body>
+    <form id="form1" runat="server">
+    <div>
+        <div id="divOut" runat="server" style="width: 100px; height: 
+100px">
+        </div>
+    
+    </div>
+        <asp:Button ID="btnMove" runat="server" OnClick="someevent" 
+Text="Button" />
+        <br />
+        <br />
+        <br />
+        <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" 
+OnSelectedIndexChanged="ListBox1_SelectedIndexChanged">
+            <asp:ListItem>A</asp:ListItem>
+            <asp:ListItem>C</asp:ListItem>
+        </asp:ListBox>
+        <asp:ListBox ID="ListBox2" runat="server" AutoPostBack="True" 
+OnSelectedIndexChanged="ListBox1_SelectedIndexChanged">
+            <asp:ListItem>B</asp:ListItem>
+            <asp:ListItem>D</asp:ListItem>
+        </asp:ListBox>
+    </form>
+</body>
+</html>
+


More information about the mono-bugs mailing list