IT
摘要: 网站导航 site map 公司简介 PROFILE or COMPANY Profile or Company 公司设备 EQUIPMENT Equipment 公司荣誉 GLORIES Glories 企业文化 CULTURE Culture 产品展示 PRODUCT Product 资质认证 quality certification 企业规模 SCALE Sca... 阅读全文
posted @ 2007-11-10 11:48 liufei 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 下面是写cookie 1 HttpCookie cookie = new HttpCookie("Info");//定义cookie对象以及名为Info的项 2 DateTime dt = DateTime.Now;//定义时间对象 3 TimeSpan ts=new TimeSpan(1,0,0,0);//cookie有效作用时间,具体查msdn 4 cookie.Expires = dt.A... 阅读全文
posted @ 2007-11-10 11:18 liufei 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 加密网站中的配置信息,我们不需要写任何代码,也不需要修改任何代码,只需要使用 aspnet_regiis 工具修改配置文件即可. 比如我们有下面一个配置文件需要加密: 假设这个配置文件在 MyApplication 目录下。 加密命令 aspnet_regiis -pe "connectionStrings" -app "/MyApplication" aspnet_r... 阅读全文
posted @ 2007-11-10 11:04 liufei 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1. 创建数据库 // 创建数据库 File.Delete("Test.sdf"); SqlCeEngine engine = new SqlCeEngine( "Data Source='Test.sdf';LCID=1033;Password=\"s$;2'!dS64\";Encrypt=TRUE;"); engine.CreateDatabase(); 2. 验证和修复数据库 /... 阅读全文
posted @ 2007-11-10 09:51 liufei 阅读(187) 评论(0) 推荐(0) 编辑
摘要: --创建测试环境 Create Table people (id Int, sex int, birth DateTime) --插入数据 insert people select 1, 0, '1980-02-01' Union All select 1, 0, '1970-02-01' Union All select 1, 0, '1977-02-01' Union All select ... 阅读全文
posted @ 2007-11-10 09:00 liufei 阅读(669) 评论(0) 推荐(0) 编辑