AI OnAI Off
’ alt=”” />
OR,
’ alt=”” />
protected static string GetThumbnailImage(PageData pd)
{
return (pd["Image55x74"] != null ? pd["Image55x74"] : "default.gif");
}
Both solutions expect the Property Image55x74 to be a string. If not – you have to cast it to a string.
protected static string GetThumbnailImage() { if (Container.CurrentPage["Image55x74"] != null) return (Container.CurrentPage["Image55x74"]); return "default.gif"; }
The aspx could look something like this: