Merge pull request #2448 from BrzVlad/feature-cprop-opt
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / ButtonFieldBase.cs
index 9b8e3e318c1be5927ebb12a5f7e6ee872d955839..9db4f389feafa79943b374004fa08b7a183c5a35 100644 (file)
@@ -4,7 +4,7 @@
 // Authors:
 //     Lluis Sanchez Gual (lluis@novell.com)
 //
-// (C) 2005 Novell, Inc (http://www.novell.com)
+// (C) 2005-2010 Novell, Inc (http://www.novell.com)
 //
 
 //
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 using System.Collections;
 using System.Collections.Specialized;
 using System.Web.UI;
 using System.ComponentModel;
 using System.Security.Permissions;
 
-namespace System.Web.UI.WebControls {
-
+namespace System.Web.UI.WebControls
+{
        [AspNetHostingPermissionAttribute (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        [AspNetHostingPermissionAttribute (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        public abstract class ButtonFieldBase : DataControlField
@@ -78,7 +77,7 @@ namespace System.Web.UI.WebControls {
                [WebSysDescription ("")]
                [WebCategoryAttribute ("Behavior")]
                public virtual string ValidationGroup {
-                       get { return ViewState.GetString ("ValidationGroup", ""); }
+                       get { return ViewState.GetString ("ValidationGroup", String.Empty); }
                        set {
                                ViewState ["ValidationGroup"] = value;
                                OnFieldChanged ();
@@ -96,4 +95,3 @@ namespace System.Web.UI.WebControls {
                }
        }
 }
-#endif