AdRotator.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /**
  2. * Namespace: System.Web.UI.WebControls
  3. * Class: AdRotator
  4. *
  5. * Author: Gaurav Vaish
  6. * Contact: <[email protected]>
  7. * Status: 10??%
  8. *
  9. * (C) Gaurav Vaish (2001)
  10. */
  11. using System;
  12. using System.Collections;
  13. namespace System.Web.UI.WebControls
  14. {
  15. public class AdRotator: WebControl
  16. {
  17. private string advertisementFile;
  18. private string keywordFilter;
  19. private string target;
  20. public event AdCreatedEventHandler AdCreated;
  21. public AdRotator()
  22. {
  23. advertisementFile = string.Empty;
  24. keywordFilter = string.Empty;
  25. target = string.Empty;
  26. }
  27. public string AdvertisementFile
  28. {
  29. get
  30. {
  31. return advertisementFile;
  32. }
  33. set
  34. {
  35. advertisementFile = value;
  36. }
  37. }
  38. public string KeywordFilter
  39. {
  40. get
  41. {
  42. return keywordFilter;
  43. }
  44. set
  45. {
  46. keywordFilter = value;
  47. }
  48. }
  49. public string Target
  50. {
  51. get
  52. {
  53. return target;
  54. }
  55. set
  56. {
  57. target = value;
  58. }
  59. }
  60. protected override void Render(HtmlTextWriter writer)
  61. {
  62. HyperLink hLink = new HyperLink();
  63. Image image;
  64. AttributeCollection attributeColl = base.Attributes;
  65. ICollection keys = attributeColl.Keys;
  66. IEnumerator iterator = keys.GetEnumerator();
  67. }
  68. }
  69. }