摘要: 最近在做一个多地区分站的网站,但做了很久就没有写出来,于是迫不及待的寻找解决方案,大致确立了2种实现方式:1.开发一个分站的功能2.单独做一个网站感觉工作量很大,于是搁浅了,一次偶然看到一篇文章:扩展网站支持多地区分站,基于OPS.CMS(原文地址:http://blog.ops.cc/webtech/sabvm.html)我感觉他的实现思路比较好,通过字典的方式,以下是它实现的方法代码:引文:2.编写支持分站的代码我们创建一个新的类型文件,并存放到网站的/App_Code/目录下,在网站编译过程中会被自动编译成程序集.我们通过一个实例来说明:code:0345.ccusing System; 阅读全文
posted @ 2013-04-23 17:34 badsun 阅读(379) 评论(0) 推荐(0) 编辑
摘要: I received a couple of emails recently asking how to implement an XML-RPC service in an ASP.NET MVC application. In case anyone is interested this is how to do itDefine an interface for your XML-RPC service, for example:using CookComputing.XmlRpc;public interface IStateName{ [XmlRpcMethod("exam 阅读全文
posted @ 2013-04-23 17:22 badsun 阅读(209) 评论(0) 推荐(0) 编辑