[Mono-bugs] [Bug 79587][Min] Changed - Sytle Sheets not being mainted between requests
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Oct 5 19:42:10 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=79587
--- shadow/79587 2006-10-05 16:13:29.000000000 -0400
+++ shadow/79587.tmp.18731 2006-10-05 19:42:10.000000000 -0400
@@ -41,6 +41,75 @@
Additional Information:
------- Additional Comments From gonzalo at ximian.com 2006-10-05 16:13 -------
Please, attach a simple .aspx page that i can use to test.
+
+------- Additional Comments From david_garcia at logitech.com 2006-10-05 19:42 -------
+Click on the button, it will always print out "???" because the style
+sheets never get changed. This prevents toggling states of objects.
+
+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