HtmlGenericControl.cs 836 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // System.Web.UI.HtmlControls.HtmlGenericControl.cs
  3. //
  4. // Authors:
  5. // Bob Smith <[email protected]>
  6. // Gonzalo Paniagua ([email protected])
  7. //
  8. // (C) Bob Smith
  9. // (c) 2002 Ximian, Inc. (http://www.ximian.com)
  10. //
  11. using System;
  12. using System.ComponentModel;
  13. using System.Web;
  14. using System.Web.UI;
  15. namespace System.Web.UI.HtmlControls{
  16. [ConstructorNeedsTag(true)]
  17. public class HtmlGenericControl : HtmlContainerControl {
  18. public HtmlGenericControl() :
  19. this ("span")
  20. {
  21. }
  22. public HtmlGenericControl (string tag) :
  23. base ()
  24. {
  25. if (tag == null)
  26. tag = "";
  27. _tagName = tag;
  28. }
  29. [DefaultValue("")]
  30. [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
  31. [WebCategory("Appearance")]
  32. public new string TagName
  33. {
  34. get { return _tagName; }
  35. set { _tagName = value; }
  36. }
  37. }
  38. }