protected string SerializeValue(EPiImagePropertyData value) { var data = value; if (data != null && !String.IsNullOrEmpty(data.ImageUrl)) { //Add <a href="{string}"></a> around string to trigger error message when deleting image if (!String.IsNullOrEmpty(data.ImageDescription)) { return(ImgStart + ToMappedLink(data.ImageUrl) + "?alt=" + data.ImageDescription + ImgEnd); } else { return(ImgStart + ToMappedLink(data.ImageUrl) + ImgEnd); } } return(String.Empty); }
protected string SerializeValue(EPiImagePropertyData value) { var data = value; if (data != null && !String.IsNullOrEmpty(data.ImageUrl)) { //Add <a href="{string}"></a> around string to trigger error message when deleting image if (!String.IsNullOrEmpty(data.ImageDescription)) return ImgStart + ToMappedLink(data.ImageUrl) + "?alt=" + data.ImageDescription + ImgEnd; else return ImgStart + ToMappedLink(data.ImageUrl) + ImgEnd; } return String.Empty; }