[Mono-bugs] [Bug 47725][Maj] New - Font style (bold for instance) changes are not shown.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 19 Aug 2003 04:10:50 -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=47725
--- shadow/47725 2003-08-19 04:10:50.000000000 -0400
+++ shadow/47725.tmp.7008 2003-08-19 04:10:50.000000000 -0400
@@ -0,0 +1,65 @@
+Bug#: 47725
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: yaslama@slamail.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Font style (bold for instance) changes are not shown.
+
+Description of Problem:
+Font style (bold for instance) changes are not shown.
+
+Steps to reproduce the problem:
+1. Run the aspx that I pasted in the
+ bottom of the description form field.
+2. Click on the button several times
+3. The click doesn't toggle the bold property of the button as expected.
+
+Actual Results:
+The button stay bold
+
+Expected Results:
+Bold, regular, bold, regular, ...
+
+
+How often does this happen?
+Always
+
+Additional Information:
+
+The problem seems to be in the loading of Viewstate : BtnTest.Font.Bold is
+always false in the beginning of Btn_OnClick() but the Viewstate in the
+html received by the client seems to contain the bold info.
+
+<%@ Page language="c#" AutoEventWireup="false" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+ <HEAD>
+ <script language=C# runat=server>
+ private void Btn_OnClick(object sender, System.EventArgs e)
+ {
+ BtnTest.Font.Bold = !BtnTest.Font.Bold;
+ }
+ </script>
+
+ <title>WebForm1</title>
+ </HEAD>
+ <body>
+ <form id="Form1" method="post" runat="server">
+ <asp:Button id="BtnTest" style="Z-INDEX: 101; LEFT: 240px; POSITION:
+absolute; TOP: 96px" runat="server"
+ Text="Test" Width="72px" OnClick="Btn_OnClick">
+ </asp:Button>
+ </form>
+ </body>
+</HTML>