Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
’ 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: