X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web.UI.WebControls%2FButtonFieldBase.cs;h=9db4f389feafa79943b374004fa08b7a183c5a35;hb=69fd76078eb720a89f3420bab3fe1bc919896bec;hp=9b8e3e318c1be5927ebb12a5f7e6ee872d955839;hpb=53e266903ec6b2d822cf5b0c566f6374df5307a4;p=mono.git diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/ButtonFieldBase.cs b/mcs/class/System.Web/System.Web.UI.WebControls/ButtonFieldBase.cs index 9b8e3e318c1..9db4f389fea 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/ButtonFieldBase.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls/ButtonFieldBase.cs @@ -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) // // @@ -28,15 +28,14 @@ // 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