[Mono-bugs] [Bug 47727][Wis] New - Changing twice the color of a control results a System.ArgumentOutOfRangeException error
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 19 Aug 2003 04:33:32 -0400 (EDT)
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 yaslama@slamail.org.
http://bugzilla.ximian.com/show_bug.cgi?id=47727
--- shadow/47727 2003-08-19 04:33:32.000000000 -0400
+++ shadow/47727.tmp.7203 2003-08-19 04:33:32.000000000 -0400
@@ -0,0 +1,86 @@
+Bug#: 47727
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: yaslama@slamail.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Changing twice the color of a control results a System.ArgumentOutOfRangeException error
+
+Description of Problem:
+Changing twice the color (and also forecolor, ...) of a control results a
+System.ArgumentOutOfRangeException error
+
+Steps to reproduce the problem:
+1. Run the aspx that I pasted in the
+ bottom of the description form field.
+2. Click twice the button
+
+Actual Results:
+System.ArgumentOutOfRangeException: Value must be in the range 0 - 255
+Parameter name: alpha
+-1
+in <0x0005f> 00 System.Drawing.Color:CheckARGBValues (int,int,int,int)
+in <0x00029> 00 System.Drawing.Color:FromArgb (int,int,int,int)
+in <0x00036> 00 System.Drawing.Color:FromArgb (int)
+in <0x0024f> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00481> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00329> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00399> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00399> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00481> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00411> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00481> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00411> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x002ed> 00 System.Web.UI.LosFormatter:DeserializeObject (string)
+in <0x00074> 00 System.Web.UI.LosFormatter:Deserialize (string)
+in <0x000ac> 00 System.Web.UI.Page:LoadPageStateFromPersistenceMedium ()
+
+
+Expected Results:
+Color toggle between Red and Green.
+
+How often does this happen?
+Always
+
+Additional Information:
+
+<%@ Page language="c#" AutoEventWireup="false" %>
+<%@ Import Namespace="System.Drawing" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+ <HEAD>
+ <title>WebForm2</title>
+ <script language="C#" runat="server">
+
+ public class TheColor
+ {
+ public static bool green = true;
+ }
+
+ protected void Btn_OnCick(object sender, System.EventArgs e)
+ {
+ BtnTest.BackColor = TheColor.green ? Color.Red : Color.Green;
+ TheColor.green = !TheColor.green;
+ }
+
+ </script>
+ </HEAD>
+ <body>
+ <form id="Form1" method="post" runat="server">
+ <asp:Button id="BtnTest" BackColor="#00ff00" style="Z-INDEX: 101; LEFT:
+240px; POSITION: absolute; TOP: 96px" runat="server"
+ Text="Test" Width="72px" OnClick="Btn_OnCick">
+ </asp:Button>
+ </form>
+ </body>
+</HTML>