Merge pull request #2542 from akoeplinger/remove-changelog
[mono.git] / mcs / class / System.Web / System.Web.UI.HtmlControls / HtmlInputPassword.cs
index 99db3113a04c221713442c6de4fc2af19647b63e..a91d78abf85af33ae30069f95b39e1568a1fb87e 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Chris Toshok  <toshok@ximian.com>
 //
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 using System.ComponentModel;
 using System.Collections.Specialized;
 using System.Security.Permissions;
 
-namespace System.Web.UI.HtmlControls {
-
+namespace System.Web.UI.HtmlControls
+{
        // CAS
        [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
@@ -48,7 +46,6 @@ namespace System.Web.UI.HtmlControls {
                {
                }
 
-
                protected override void RenderAttributes (HtmlTextWriter writer)
                {
                        // make sure we don't render the password
@@ -69,9 +66,11 @@ namespace System.Web.UI.HtmlControls {
 
                void IPostBackDataHandler.RaisePostDataChangedEvent ()
                {
+                       // We registered in the base class
+                       ValidateEvent (UniqueID, String.Empty);
                        OnServerChange (EventArgs.Empty);
                }
        }
 
 }
-#endif
+