导入注册表路径 Read More
posted @ 2010-02-28 18:35 zeus2 Views(421) Comments(0) Diggs(1) Edit
首先System.DateTimeOffset类型属于.net 框架mscorlib.dll的内容,而且是.net框架 2.0 sp1里面内容。安装.net框架3.5的时候自动安装好了。所以如果遇到该类型无法加载,则直接安装.net框架3.5,条件不允许的话安装2.0 sp1即可(最新2.0 sp2)。 Read More
posted @ 2010-01-20 00:01 zeus2 Views(479) Comments(0) Diggs(0) Edit
小弟最近要实现一个功能,就是如果改页面被修改,则不能翻页,必须提交本页后才能翻页。[代码]需要把该功能加载到form的onsubmit事件。经过检测发现很有意思的事。如果使用$("form").submit函数加载这段代码,会发现_doPostBack回发的提交无法触发该事件。经查是由于自动生成的__doPostBack函数,首先把当前form复制为theForm,然后在form1中加载的js代码... Read More
posted @ 2009-11-24 10:21 zeus2 Views(389) Comments(0) Diggs(1) Edit
执行下面合并配置文件命令即可。%SystemRoot%\system32\inetsrv\appcmd migrate config "Default WebSite" Read More
posted @ 2009-08-03 17:32 zeus2 Views(323) Comments(0) Diggs(0) Edit
首先创建表CREATE TABLE customer(cust_id smallint IDENTITY NOT NULL,cust_name varchar(50) NOT NULL) 获取当前表种子和自增大小: SELECT IDENT_SEED('customer'), IDENT_INCR('customer') 下面2个语句等价: SELECT IDENTITYCOL FROM cust... Read More
posted @ 2009-08-03 11:01 zeus2 Views(242) Comments(0) Diggs(0) Edit
简单使用泛型封装下xml序列化 Read More
posted @ 2009-06-27 22:28 zeus2 Views(339) Comments(1) Diggs(0) Edit
public static IList<SqlParameter> GetParas<T>(T t, out string where) { StringBuilder sb = new StringBuilder(); List<SqlParameter> paras = new List<SqlParameter>(); Type type = ... Read More
posted @ 2009-06-25 23:48 zeus2 Views(308) Comments(1) Diggs(0) Edit
现在要买房子。南京江宁的房价目前基本在6500左右。除了单室套最小的也是90平米,算出来接近585000。家里能支付首付20W 剩下40W的贷款。目前年利率为5%, 每年还钱就是2W,1个月就接近2K。如果是7%就是2.8W。每个月还钱2500。算花费每天吃饭20多块,一个月就是600。加上宽带费120多,电话费,水电煤气费交通费,一个月不买衣服不花钱就要1000多。只能等通货膨胀了。将来我拿什么... Read More
posted @ 2009-05-10 10:17 zeus2 Views(389) Comments(3) Diggs(0) Edit
原文地址:http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp从更低的角度这篇文章在一个底层的角度来关注一个web请求怎样到达asp.net框架,从web服务器,通过ISAPI。看看这些后面发生了什么,让我们停止对asp.net的黑箱猜想。ASP.NET是一个非常强大用来创建web应用程序的平台,它为创建w... Read More
posted @ 2009-03-01 10:08 zeus2 Views(527) Comments(0) Diggs(0) Edit
#include "stdafx.h"#include "sqlite3.h"sqlite3 * pDB;int createTable(){ char* errMsg; std::string dropTab = "drop table test_tab;"; string strSQL= "create table test_tab (f1 int, f2 long);"; int res= ... Read More
posted @ 2008-11-09 00:50 zeus2 Views(2404) Comments(0) Diggs(0) Edit