[Mono-bugs] [Bug 69928][Nor] New - Page.cs handles _requiresPostBack member variable badly; patch included

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 25 Nov 2004 20:03:51 -0500 (EST)


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 dobos_s@ibcnet.hu.

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

--- shadow/69928	2004-11-25 20:03:51.000000000 -0500
+++ shadow/69928.tmp.6826	2004-11-25 20:03:51.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 69928
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dobos_s@ibcnet.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Page.cs handles _requiresPostBack member variable badly; patch included
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+In some circumstances _requiresPostBack variable doesnt reset.
+Some controls, like checkbox remains in the list after
+e.g. switching between two panels. In this case controls LoadPostData
+will be called while the control wasnt visible at all. The result
+is a bad control state.
+
+patch against mono-1.1.2.99.20041124 follows:
+--- mcs/class/System.Web/System.Web.UI/Page.cs.bck	2004-11-24 
+08:53:19.000000000 +0100
++++ mcs/class/System.Web/System.Web.UI/Page.cs	2004-11-25 
+19:06:16.000000000 +0100
+@@ -699,6 +699,10 @@
+ 			}
+ 			_requiresPostBack = list1;
+ 		}
++		else
++		{
++		    _requiresPostBack = null;
++		}
+ 	}
+ 
+ 	[EditorBrowsable (EditorBrowsableState.Never)]