摘要: 需要建立一个根文件夹 ~/xml/couter.txt#region网站访问量protectedvoidpageviews(){intcount=0;//数据累加intStat=0;StreamReadersrd;//取得文件的实际路径stringfile_path=Server.MapPath("... 阅读全文
posted @ 2015-05-22 09:05 calochCN 阅读(197) 评论(0) 推荐(0)
摘要: 做了一个封装,使页面更容易维护一些。主要是两个方法,如下所示: privatevoidBindModule(ActionbindSingRpt){BindControls(this,"List_",bindSingRpt);}privatevoidBindControls(Pagepage... 阅读全文
posted @ 2015-05-21 16:39 calochCN 阅读(146) 评论(0) 推荐(0)
摘要: 以前用flash做首页图片轮播。最近的网站里用到一个插件MyFocus插件焦点图插件用法如下: ">"thumb=""alt=""/> 使用起来很方便,使用上完全用ullist可以呈现,很方便。 阅读全文
posted @ 2015-05-21 16:21 calochCN 阅读(334) 评论(0) 推荐(0)
摘要: Service UnavailableHTTP Error 503. The service is unavailable.今天要布署一个网站,在自己的电脑上,结果碰到服务器503错误,找应用程序池的原因:最终找到解决方案:修改应用程序池的高级设置,然后选标识,选择用户为LocalSystem,如下... 阅读全文
posted @ 2015-05-21 09:26 calochCN 阅读(1145) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.Common;using System.Reflection;using Syst... 阅读全文
posted @ 2015-05-20 21:38 calochCN 阅读(516) 评论(1) 推荐(2)
摘要: .net framework中使用扩展方法,由网摘上看到,是因为编译器将扩展方法带上了ExtensionAttribute特性要在.net framework 2.0中使用的话,可以自定义一个特性:namespaceSystem.Runtime.CompilerServices{publicclas... 阅读全文
posted @ 2015-05-20 17:51 calochCN 阅读(464) 评论(0) 推荐(0)
摘要: usingSystem;usingSystem.Collections.Concurrent;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.Linq;usingSystem.Net.NetworkInformation;us... 阅读全文
posted @ 2015-05-20 16:04 calochCN 阅读(322) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2015-05-18 20:58 calochCN 阅读(2) 评论(0) 推荐(0)
摘要: 虽然我有了vs的账号,也vs2013开始已经可以进行远端的账户管理了,可是vs的版控毕竟有些依赖vs,想想还是用git吧今天把这个环境的整套都弄地基本熟了。记录一下,算是一个小结。开始搭建系统框架 阅读全文
posted @ 2015-05-17 10:22 calochCN 阅读(151) 评论(1) 推荐(0)
摘要: 每次git clone 和push 都要输入用户名和密码。虽然安全,但在本机上每次都输有些麻烦,如何记住用户名和密码呢?当你配置好git后,在C:\Documents and Settings\Administrator\ 目录下有一个 .gitconfig 的文件,里面会有你先前配好的name 和... 阅读全文
posted @ 2015-05-17 10:15 calochCN 阅读(455) 评论(0) 推荐(0)