Author: gonzalo
Date: 2006-07-21 10:22:39 -0400 (Fri, 21 Jul 2006)
New Revision: 62862
Modified:
trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI/PostBackOptions.cs
Log:
2006-07-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* PostBackOptions.cs: default to String.Empty for several field values.
Patch by Marek Habersack.
Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2006-07-21 14:11:35 UTC
(rev 62861)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2006-07-21 14:22:39 UTC
(rev 62862)
@@ -1,3 +1,8 @@
+2006-07-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * PostBackOptions.cs: default to String.Empty for several field values.
+ Patch by Marek Habersack.
+
2006-07-20 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* Page.cs: when ProcessRequest is not called, get the session from
Modified: trunk/mcs/class/System.Web/System.Web.UI/PostBackOptions.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/PostBackOptions.cs 2006-07-21
14:11:35 UTC (rev 62861)
+++ trunk/mcs/class/System.Web/System.Web.UI/PostBackOptions.cs 2006-07-21
14:22:39 UTC (rev 62862)
@@ -45,13 +45,13 @@
private bool performValidation;
private string validationGroup;
- public PostBackOptions (Control control) : this (control, null,
null, false, false, false,
- false, false,
null)
+ public PostBackOptions (Control control) : this (control, null,
null, false, true, false,
+ true, false,
null)
{
}
public PostBackOptions (Control control, string argument) :
this (control, argument, null, false,
-
false, false, false, false, null)
+
true, false, true, false, null)
{
}
@@ -60,14 +60,14 @@
bool isValidationPerformed, string
validatingGroup)
{
this.control = control;
- this.argument = argument;
- this.actionUrl = actionUrl;
+ this.argument = argument == null ? String.Empty :
argument;
+ this.actionUrl = actionUrl == null ? String.Empty :
actionUrl;
this.autoPostBack = isAutoPostBack;
this.requiresJavaScriptProtocol =
isJavaScriptProtocolRequired;
this.trackFocus = isTrackFocus;
this.clientSubmit = isClientSubmit;
this.performValidation = isValidationPerformed;
- this.validationGroup = validatingGroup;
+ this.validationGroup = validatingGroup == null ?
String.Empty : validatingGroup;
}
[DefaultValue ("")]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches