2004-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web.UI.HtmlControls / HtmlGenericControl.cs
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)
10 //
11         
12 using System;
13 using System.ComponentModel;
14 using System.Web;
15 using System.Web.UI;
16
17 namespace System.Web.UI.HtmlControls{
18         
19         [ConstructorNeedsTag(true)]
20         public class HtmlGenericControl : HtmlContainerControl {
21                 public HtmlGenericControl() :
22                         this ("span")
23                 {
24                 }
25                 
26                 public HtmlGenericControl (string tag) :
27                         base ()
28                 {
29                         if (tag == null)
30                                 tag = "";
31                         _tagName = tag;
32                 }
33                 
34                 [DefaultValue("")]
35                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
36                 [WebCategory("Appearance")]
37                 public new string TagName
38                 {
39                         get { return _tagName; }
40                         set { _tagName = value; }
41                 }
42         }
43 }
44