摘要: 提问:利用NVelocity替换模板来显示页面内容、模板页里怎么调用C#类库的静态方法呢、具体说明:string str="xxxxx...";August.Utils.StringHelper.SubString(str,200,"...");后台是可以直接这么调用的、但是放到模板里stringhelper.SubString($item.newscontent,200,"......")然后后台nh.Put("stringhelper",new August.Utils.StringHelper());不行、回 阅读全文
posted @ 2011-11-22 13:32 ctou45 阅读(360) 评论(1) 推荐(0) 编辑
摘要: C# code一、实现方法//WebSiteThumbnail.cs文件,在BS项目中需要添加对System.Windows.Forms的引用usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem 阅读全文
posted @ 2011-11-22 13:28 ctou45 阅读(273) 评论(0) 推荐(0) 编辑