1 /* System.Web.UI.HtmlControls
3 * Leen Toelen (toelen@hotmail.com)
7 using System.ComponentModel;
10 using System.Globalization;
12 namespace System.Web.UI.HtmlControls
14 [ControlBuilder (typeof (HtmlControlBuilder))]
15 public abstract class HtmlInputControl : HtmlControl
18 public HtmlInputControl (string type) : base ("input")
20 Attributes ["type"] = type;
23 protected override void RenderAttributes (HtmlTextWriter writer)
25 writer.WriteAttribute ("name",RenderedName);
26 Attributes.Remove ("name");
27 base.RenderAttributes (writer);
32 [WebCategory("Behavior")]
33 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
34 public virtual string Name
36 get { return UniqueID; }
40 internal virtual string RenderedName
46 [WebCategory("Behavior")]
47 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
51 string _type = Attributes ["type"];
52 return ((_type != null) ? _type : String.Empty);
57 [WebCategory("Appearance")]
58 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
59 public virtual string Value
62 string attr = Attributes ["value"];
63 return ((attr != null) ? attr : String.Empty);
66 set { Attributes["value"] = value; }
68 } // class HtmlInputControl
69 } // namespace System.Web.UI.HtmlControls