diff options
author | Chris Toshok <toshok@novell.com> | 2005-09-02 19:41:32 +0400 |
---|---|---|
committer | Chris Toshok <toshok@novell.com> | 2005-09-02 19:41:32 +0400 |
commit | efb51013c3b021d4a95f4cfbd9e8b64be5e475d2 (patch) | |
tree | 17065452b2d3b3e59c03535d7450da4ca83d279a /mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs | |
parent | 3cdd6fbd6e3d1d46e85bd30f9be8e717b6dec831 (diff) |
2005-09-02 Chris Toshok <toshok@ximian.com>
* HtmlInputReset.cs (ValidationGroup): remove the MonoTODO.
* htmlinputimage.cs: implement the 2.0 versions of loadpostdata,
raisepostdatachangedevent, and raisepostbackevent.
(validationgroup): implement.
* htmlinputcheckbox.cs: implement the 2.0 versions of loadpostdata
and raisepostdatachangedevent.
* HtmlInputHidden.cs: implement the 2.0 versions of LoadPostData
and RaisePostDataChangedEvent.
* HtmlInputButton.cs (RaisePostBackEventInternal): split out the
body of both RaisePostBackEvent impl's here, and fix it up so we
use the property Page.Validate call in 2.0.
(RaisePostBackEvent): call RaisePostBackEventInternal.
(IPostBackEventHandler.RaisePostBackEvent): same.
* HtmlImage.cs (Align): the test case shows that we don't need to
validate input.
svn path=/trunk/mcs/; revision=49352
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs index 432473861f7..ce527e2c53b 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs @@ -78,19 +78,27 @@ namespace System.Web.UI.HtmlControls { } #endif + void RaisePostBackEventInternal (string eventArgument) + { + if (CausesValidation) +#if NET_2_0 + Page.Validate (ValidationGroup); +#else + Page.Validate (); +#endif + OnServerClick (EventArgs.Empty); + } + #if NET_2_0 - [MonoTODO] protected virtual void RaisePostBackEvent (string eventArgument) { - throw new NotImplementedException (); + RaisePostBackEventInternal (eventArgument); } #endif void IPostBackEventHandler.RaisePostBackEvent (string eventArgument) { - if (CausesValidation) - Page.Validate (); - OnServerClick (EventArgs.Empty); + RaisePostBackEventInternal (eventArgument); } #if NET_2_0 |