随笔分类 - VTemplate
摘要:/************************************** * * author:李朴 * company:上海沐雪网络科技有限公司 * website:http://uweixin.cn * createDate:2013-11-1 * update:2014-12-30 * remark:本代码为微商城模板的核心处理逻辑; * html模板页面上的所有的...
阅读全文
摘要:/************************************** * * author:李朴 * company:上海沐雪网络科技有限公司 * website:http://uweixin.cn * createDate:2013-11-1 * update:2014-12-30 * remark:本代码为门户网站模板的核心处理逻辑; * html模板页面上的所有...
阅读全文
摘要://1e2124dd04e11d01b9df2865f85944be using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System...
阅读全文
摘要:1. 概述 系统基于.Net 4.0开发,采用C#语言,开发工具为Microsoft Visual Studio 2010;数据库采用了Sqlserver2005。 整个系统基于B/S架构,采用了传统的三层开发模型,数据层采用了ORM,使用的是Mysoft.Data的组件;业务层与表现层之间用了sp
阅读全文
摘要:VTemplate模板引擎的使用--高级篇 在网站中,经常会有某个栏目的数据在多个页面同时使用到。比如新闻网站或电子商务网站的栏目列表,几乎在很多页面都会显示栏目导航。对于这种多个页面同时使用到的“数据区”在ASP.NET Web Form开发中,经常会将这些“数据区”独立封装为一个个Web控件。那在VTemplate模板引擎里又要如何做呢?在VTemplate模板引擎里,提供了一种“模板块解析...
阅读全文
摘要:1、什么是VTemplate模板引擎? 详细请点击这里。 2、怎样使用VTemplate模板引擎? 第1步: 下载VTemplate模板引擎的最新库文件(从这里下载),下载回来后将库文件引入到你的项目中。 第2步: 针对你的目的设计好VT模板(如HTML页面)。 第3步: 根据VT模板在代码里实例化
阅读全文
摘要:1、<vt:template>与<vt:include>标签的不同 <vt:template>和<vt:include> 标签都包含file属性,如果这两个标签都设置file属性,那这两个标签看起来很相似,并且最终效果都是将文件的内容包含进来。但是对于模板引擎来说它们之间的差别却是非常的大。 <vt
阅读全文
摘要:/// /// 装载当前页面的模板文档 /// public virtual void LoadCurrentTemplate() { //是否是手机端网页 string filePath = this.Request.Url.AbsolutePath; ...
阅读全文
摘要:protected bool isMobilePage(out string path) { bool ismobi = false; string prefix = "/mobile"; path = this.Request.Url.AbsolutePath; if (path.Length >
阅读全文

浙公网安备 33010602011771号