public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; VelocityHelper vh = new VelocityHelper(); vh.Init("~/template/front"); //模板路径 #region 获取head.html中菜单项 vh.Put("menu", this.Menu); vh.Put("submenu", this.SubMenu); vh.Put("parentmenu", this.ParentMenu); #endregion #region 工程中心简介 string ec_title; string ec_content; string ec_date; Front_DataHandlerBLL.GetIntroBLL(out ec_title, out ec_content, out ec_date); vh.Put("ec_content", ec_content); #endregion #region 科研成果 vh.Put("productlist", Front_DataHandlerBLL.GetIndexProductListBLL()); #endregion vh.Display("index.html"); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; VelocityHelper vh = new VelocityHelper(); vh.Init("~/template/front"); //模板路径 #region 科研成果列表 vh.Put("pl", Front_DataHandlerBLL.GetIndexProductListBLL()); #endregion #region 获取head.html中菜单项 vh.Put("menu", this.Menu); vh.Put("submenu", this.SubMenu); vh.Put("parentmenu", this.ParentMenu); #endregion vh.Display("products.html"); }