Image.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /**
  2. * Project : Mono
  3. * Namespace : System.Web.UI.MobileControls
  4. * Class : Image
  5. * Author : Gaurav Vaish
  6. *
  7. * Copyright : 2003 with Gaurav Vaish, and with
  8. * Ximian Inc
  9. */
  10. using System;
  11. using System.Web.UI;
  12. using System.Web.Mobile;
  13. namespace System.Web.UI.MobileControls
  14. {
  15. public class Image : MobileControl, IPostBackEventHandler
  16. {
  17. public Image()
  18. {
  19. }
  20. void IPostBackEventHandler.RaisePostBackEvent(string argument)
  21. {
  22. MobilePage.ActiveForm = MobilePage.GetForm(argument);
  23. }
  24. public string AlternateText
  25. {
  26. get
  27. {
  28. object o = ViewState["AlternateText"];
  29. if(o != null)
  30. return (string)o;
  31. return String.Empty;
  32. }
  33. set
  34. {
  35. ViewState["AlternateText"] = value;
  36. }
  37. }
  38. public string ImageUrl
  39. {
  40. get
  41. {
  42. object o = ViewState["ImageUrl"];
  43. if(o != null)
  44. return (string)o;
  45. return String.Empty;
  46. }
  47. set
  48. {
  49. ViewState["ImageUrl"] = value;
  50. }
  51. }
  52. public string NavigateUrl
  53. {
  54. get
  55. {
  56. object o = ViewState["NavigateUrl"];
  57. if(o != null)
  58. return (string)o;
  59. return String.Empty;
  60. }
  61. set
  62. {
  63. ViewState["NavigateUrl"] = value;
  64. }
  65. }
  66. public string SoftkeyLabel
  67. {
  68. get
  69. {
  70. object o = ViewState["SoftkeyLabel"];
  71. if(o != null)
  72. return (string)o;
  73. return String.Empty;
  74. }
  75. set
  76. {
  77. ViewState["SoftkeyLabel"] = value;
  78. }
  79. }
  80. }
  81. }