HtmlGenericControl.cs 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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]
  17. public class HtmlGenericControl : HtmlContainerControl {
  18. private string tagName;
  19. public HtmlGenericControl() :
  20. this ("span")
  21. {
  22. }
  23. public HtmlGenericControl (string tag) :
  24. base ()
  25. {
  26. if (tag == null)
  27. tag = "";
  28. tagName = tag;
  29. }
  30. [DefaultValue("")]
  31. [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
  32. [WebCategory("Appearance")]
  33. public new string TagName
  34. {
  35. get { return tagName; }
  36. set { tagName = value; }
  37. }
  38. }
  39. }