<%# IfCompare(ImageHelper.IsImage((string)Eval("AttachmentExtension")), true,
"<div style=\"text-align:center;width: 350px;\"><div style=\"font-size: 11px;line-height: 12px;position:relative;z-index:1000;margin:auto;width:140px;\"><a target=\"_blank\" href=\"" + GetAttachmentUrl(Eval("AttachmentName"), Eval("NodeAliasPath")) + "\"><img style=\"border: none;\" src=\"" + GetAttachmentIconUrl(Eval("AttachmentExtension"), null) + "\" alt=\"" + Eval("AttachmentName") + "\" /></a><p>" + ResHelper.GetString("attach.openfile") + "</p></div></div>",
"<img src=\"" + GetAttachmentUrl(Eval("AttachmentName"), Eval("NodeAliasPath")) + "?maxsidesize=1000\" alt=\"" + Eval("AttachmentName", true) + "\" />") %>
|