05 2010 档案

摘要: 原理自己写了一个ThemeController继承于Controller,先看我的文件结构:ThemeController的具体实现:[代码]调用方法:[代码]显示效果:自己觉得这是一个比较粗浅的解决方案,算是抛砖引玉吧,敬请多多拍砖!附上源码!更好的解决方案:重写视图引擎 附上源代码阅读全文
posted @ 2010-05-30 22:13 Daniel Chow 阅读(2898) | 评论 (21) 编辑
摘要: 非常不错的文章!收藏了!原文作者: WXWinter(冬)  最近有不少朋友写信问我一些关于团队开发的问题,由于 这段时间有些忙,没有回复.今天写一篇这方面的文章向大家介绍一下我是如何带领团队开发工作流项目的   关于团队建设,项目管理的文章网上已经有很多了,在这里我就不谈这些理论了,直接给大家展示一个我在 项目开发方,后台服务开发方式,前台UI开发方式,后台服务与前台UI对接方式,代码文档,...阅读全文
posted @ 2010-05-24 23:07 Daniel Chow 阅读(310) | 评论 (2) 编辑
摘要: 构思:写一个全局的Queue , 然后开一个线程去循环. 不善言语,直接看代码吧!Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicclassMyQueue{publicdecimalId{get;set;}publicdecimalType{get;set;}}staticQueue<MyQueue>TaskQueue=newQueue<MyQueue>();staticvoidMain(string[]a阅读全文
posted @ 2010-05-20 13:05 Daniel Chow 阅读(745) | 评论 (2) 编辑
摘要: --加法 select sysdate,add_months(sysdate,12) from dual;--加1年select sysdate,add_months(sysdate,1) from dual;--加1月select sysdate,to_char(sysdate+7,'yyyy-mm-dd HH24:MI:SS') from dual; --加1星期select sysdate,...阅读全文
posted @ 2010-05-19 15:12 Daniel Chow 阅读(386) | 评论 (0) 编辑
摘要: 问题重现: 当项目下:Controller/HomeController.cs时, 人在创建一个域Test,之后在建一个同名的HomeController: Areas/Test/Controller/HomeController.cs运行报错:Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('{controller}/{action}/{id}/') does no阅读全文
posted @ 2010-05-17 12:32 Daniel Chow 阅读(484) | 评论 (1) 编辑
摘要: 原理:JSONP即JSON with Padding。由于同源策略的限制,XmlHttpRequest只允许请求当前源(域名、协议、端口)的资源。如果要进行跨域请求,我们可以通过使用html的script标记来进行跨域请求,并在响应中返回要执行的script代码,其中可以直接使用JSON传递javascript对象。这种跨域的通讯方式称为JSONP。个人理解: 就是在客户端动态注册一个函数func...阅读全文
posted @ 2010-05-17 09:13 Daniel Chow 阅读(910) | 评论 (0) 编辑
摘要: 通过重写IAuthorizationFilter检查访问者是否授权,如果未授权就转到指定登陆页面去。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicvoidOnAuthorization(AuthorizationContextfilt...阅读全文
posted @ 2010-05-03 16:11 Daniel Chow 阅读(509) | 评论 (2) 编辑
摘要: 大多数情况下我们返回到客户端的Json有两种方式:1、直接传对象给Json()去转成Json代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicActionResultJsonTest(){List<Result>list=ne...阅读全文
posted @ 2010-05-03 15:49 Daniel Chow 阅读(598) | 评论 (3) 编辑