2011年11月30日
摘要: 二十二、日期函数:1、GETDATE() :取得当前日期时间 2、DATEADD (datepart , number, date ),计算增加以后的日期。参数date为待计算的日期;参数number为增量;参数datepart为计量单位,可选值见备注。DATEAD... 阅读全文
posted @ 2011-11-30 08:56 swarb 阅读(124) 评论(0) 推荐(0) 编辑
  2011年11月29日
摘要: Windows下的window.history.back()后退后返回的不只是前一个页而是前一个页的状态。如果一个页我修改了3次那必须后退3次才能回到前一个页。而且数据库中删除的数据依然显示在上面感觉非常的不实用。 解决办法:history.back()后... 阅读全文
posted @ 2011-11-29 16:11 swarb 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://developer.51cto.com/art/200908/143715.htmC#读写ini文件之前要了解的概念:INI就是扩展名为"INI"的文件,其实他本身是个文本文件,可以用记事本打开,主要存放的是用户所做的选择或系统的各种参数.C... 阅读全文
posted @ 2011-11-29 16:07 swarb 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1 using System;2 using System.Collections.Generic;3 using System.Text;4 using System.Data;5 using System.Data.SqlClient;6 using Syste... 阅读全文
posted @ 2011-11-29 11:35 swarb 阅读(131) 评论(0) 推荐(0) 编辑
  2011年11月24日
摘要: 一、项目名称及描述:(实现步骤为:4-3-6-5-2-1) 1、WEB=表示层 2、BLL=业务逻辑层 3、IDAL=数据访问层接口定义 4、Model=业务实体 5、DALFactory=数据层的抽象工厂(创建反射) 6、SQLServerDAL... 阅读全文
posted @ 2011-11-24 09:01 swarb 阅读(266) 评论(0) 推荐(0) 编辑
  2011年11月17日
摘要: 软件领域将向何处发展?这个问题可能是所有IT人都在想的问题,谁掌握了这个问题的要点,谁能先知先觉,那么就能引领这个行业。但是很多情况下,我们无法预测未来,只能在埋头苦干的过程中迷失方向。最常见的预测未来的方式,就是分析历史,以史为鉴,以史为尺来度量可能的未来。软件... 阅读全文
posted @ 2011-11-17 11:28 swarb 阅读(119) 评论(0) 推荐(0) 编辑
摘要: C#的String.Format举例stringstr1 =string.Format("{0:N1}",56789); //result: 56,789.0stringstr2 =string.Format("{0:N2}",5678... 阅读全文
posted @ 2011-11-17 10:26 swarb 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1using System; 2using System.Collections.Generic; 3using System.Configuration; 4using System.Data; 5using System.Data.SqlClient; 6 7n... 阅读全文
posted @ 2011-11-17 08:57 swarb 阅读(140) 评论(0) 推荐(0) 编辑
  2011年11月15日
摘要: 增加数据 OrmCommonClient orm = new OrmCommonClient(); List list=new List(); BackUp bp = new ... 阅读全文
posted @ 2011-11-15 16:14 swarb 阅读(210) 评论(0) 推荐(0) 编辑
  2011年11月4日
摘要: //文本文件的创建,和写入数据 引用system.io string path = @"D:\backup\pg_backup.txt"; if (!File.Exists(path)) { ... 阅读全文
posted @ 2011-11-04 13:38 swarb 阅读(117) 评论(0) 推荐(0) 编辑