HtmlGenericControl.cs 697 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.Web;
  13. using System.Web.UI;
  14. namespace System.Web.UI.HtmlControls{
  15. [ConstructorNeedsTag]
  16. public class HtmlGenericControl : HtmlContainerControl {
  17. private string tagName;
  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. public new string TagName
  30. {
  31. get { return tagName; }
  32. set { tagName = value; }
  33. }
  34. }
  35. }