遗忘海岸

江湖程序员 -Feiph(LM战士)

统计

常用链接

积分与排名

我的网站

阅读排行榜

评论排行榜

10 2008 档案

关于Asp.net应用程序生命周期

posted @ 2008-10-22 16:49 遗忘海岸 阅读(79) | 评论 (0) 编辑

javascript 使用数据加密跟base64 编码

posted @ 2008-10-21 15:39 遗忘海岸 阅读(262) | 评论 (0) 编辑

xmlHttpRequest 以Post方式发数据到Asp.net页,在gb2312编码下的解决办法
摘要: 首先xmlHttpRequest 使用Post时,需要对数据进行编码,在客户端一般使用js中的encodeURIComponent在web.config中指定了gb2312编码后,在aspx页面中如果直接使用 Request[xxx]那么结果将会出现乱码,原因是asp.net系统使用gb2312编码对上传的数据进行解码还原,而encodeURIComponent编码是按uft-8来的.为了避免这个...阅读全文

posted @ 2008-10-21 11:30 遗忘海岸 阅读(1254) | 评论 (3) 编辑

C#中的时间操作
摘要: 时间区间计算 //当前时间的月初 //DateTime t_now = new DateTime(2008, 3, 1, 0, 0, 1); DateTime t_now = new DateTime(2008, 3, 31, 23, 59, 59); DateTime monthBegin = t_now.Date.AddDays(1 - t_now.Day);//减当前天数后加1 Response.Write(monthBegin.ToString("yyyy-MM-dd HH:mm:ss")); Response.Write("<br/>"); //上个月的月初 DateTime las阅读全文

posted @ 2008-10-17 16:45 遗忘海岸 阅读(808) | 评论 (0) 编辑