**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Web / System.Web.UI.HtmlControls / HtmlGenericControl.cs
blobca8940adb1d484942761172d3132de2222249f2f
1 //
2 // System.Web.UI.HtmlControls.HtmlGenericControl.cs
3 //
4 // Authors:
5 // Bob Smith <bob@thestuff.net>
6 // Gonzalo Paniagua (gonzalo@ximian.com)
7 //
8 // (C) Bob Smith
9 // (c) 2002 Ximian, Inc. (http://www.ximian.com)
12 using System;
13 using System.ComponentModel;
14 using System.Web;
15 using System.Web.UI;
17 namespace System.Web.UI.HtmlControls{
19 [ConstructorNeedsTag(true)]
20 public class HtmlGenericControl : HtmlContainerControl {
21 public HtmlGenericControl() :
22 this ("span")
26 public HtmlGenericControl (string tag) :
27 base ()
29 if (tag == null)
30 tag = "";
31 _tagName = tag;
34 [DefaultValue("")]
35 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
36 [WebCategory("Appearance")]
37 public new string TagName
39 get { return _tagName; }
40 set { _tagName = value; }