From 62aeab6dc17ed33644f8da189b788c2339648f4e Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Wed, 5 Jun 2002 15:58:32 +0000 Subject: 2002-06-05 Gonzalo Paniagua Javier * System.Web.UI/AttributeCollection.cs: don't need a Hastable. StateBag now works fine and takes care of the details. * System.Web.UI/Control.cs: added HasChildren property. * System.Web.UI/StateBag.cs: fixed a couple of nasty bugs. * System.Web.UI.HtmlControls/HtmlButton.cs: RenderAttributes is an override, not new. * System.Web.UI.HtmlControls/HtmlContainerControl.cs: use the new Render method in HtmlControl. * System.Web.UI.HtmlControls/HtmlControl.cs: added Render method to render the tag and its attributes. Works for container and non-containers. * System.Web.UI.HtmlControls/HtmlImage.cs: RenderAttributes don't need to be new. Implemented Height property. svn path=/trunk/mcs/; revision=5130 --- .../System.Web.UI.HtmlControls/HtmlInputButton.cs | 31 ---------------------- 1 file changed, 31 deletions(-) (limited to 'mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs') 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 3f1a75c4133..48be001756c 100755 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs @@ -23,37 +23,6 @@ namespace System.Web.UI.HtmlControls{ } } - protected override void RenderAttributes(HtmlTextWriter writer){ - string attrType = Type; - bool ofTypeSubmit = (String.Compare(attrType, "submit", true) == 0); - bool events; - if (ofTypeSubmit != true){ - events = (Events[EventServerClick] != null); - } - else{ - events = false; - } - if (Page != null){ - if (ofTypeSubmit != true){ - WriteOnClickAttribute( - writer, - false, - true, - CausesValidation == false? Page.Validators.Count > 0: false); - } - else{ - if (events != true && String.Compare(attrType,"button", true) != 0){ - WriteOnClickAttribute( - writer, - false, - true, - CausesValidation == false? Page.Validators.Count > 0: false); - } - } - } - base.RenderAttributes(writer); - } - public void RaisePostBackEvent(string eventArgument){ if(CausesValidation == true){ Page.Validate(); -- cgit v1.2.3