/* ======================== Override End ======================== */ #endregion #region ====== Method for decorating pages 页面装饰方法 ====== /// <summary> /// 输出HTML代码: 返回图片内容 /// </summary> protected string imgResult(string sourceImgUrl) { StringBuilder resultStr = new StringBuilder(); if (!FileHelp.FileExists(sourceImgUrl)) { return(String.Format("文件不存在<br/>{0}", sourceImgUrl)); } resultStr.Append(String.Format("<a href=\"{0}\" target=\"_blank\">", sourceImgUrl)); resultStr.Append(String.Format("<img class=\"img-box\" src=\"{0}\" />", sourceImgUrl)); resultStr.Append("</a>"); return(resultStr.ToString()); }