2014年9月15日
摘要: select datepart(hh,getdate())--orselect datename(hh,getdate()) 阅读全文
posted @ 2014-09-15 11:56 中国E客(eketeam) 阅读(1259) 评论(0) 推荐(0) 编辑
  2014年9月14日
摘要: IIS会按文件地址及参数将文件缓存到客户端,以便再次访问该内容时速度更快。如果要取消这种机制则需要禁止缓存文件。一、编程方式Response.Buffer = true;Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);Response.Cach... 阅读全文
posted @ 2014-09-14 08:20 中国E客(eketeam) 阅读(265) 评论(0) 推荐(0) 编辑
  2014年9月13日
摘要: using System;using System.Diagnostics;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1(... 阅读全文
posted @ 2014-09-13 15:59 中国E客(eketeam) 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 在一般事务处理页面,可以轻松的得到 Request,Response对象,从而进行相应的操作,如下:HttpRequest Request = context.Request; HttpResponse Response = context.Response;但是要得到 Session的值就没有那么... 阅读全文
posted @ 2014-09-13 15:57 中国E客(eketeam) 阅读(300) 评论(0) 推荐(1) 编辑
摘要: 1.打开IIS管理器 inetmgr2.选择被嵌入iframe源站点或者目录,右键点击打开属性框3.切换到HTTP头4.添加5.自定义HTTP头名: P3P6.自定义HTTP头值: CP="CAO PSA OUR"7.关闭属性框退出,即刻生效至于上面CAO PSA OUR的具体意思,还是请参考前面的... 阅读全文
posted @ 2014-09-13 15:56 中国E客(eketeam) 阅读(506) 评论(0) 推荐(0) 编辑
摘要: System.IO.FileInfo fi = new System.IO.FileInfo(@"D:\site\EKECMS\skin\Grey\default#.html");Response.Write("修改时间:" + fi.LastWriteTime.ToString() + "");R... 阅读全文
posted @ 2014-09-13 15:54 中国E客(eketeam) 阅读(565) 评论(0) 推荐(0) 编辑
摘要: DataSet ds = new DataSet(); DataTable dt = new DataTable("OrderList"); dt.Columns.Add(new DataColumn("ID", typeof(string))); dt.Columns.Add... 阅读全文
posted @ 2014-09-13 15:52 中国E客(eketeam) 阅读(303) 评论(0) 推荐(0) 编辑
摘要: hr{color:#ccc;height:1px;border:0px;border-top:1px solid #ccc;margin:0px;padding:0px;overflow:hidden;font-size:0px;} 阅读全文
posted @ 2014-09-13 15:51 中国E客(eketeam) 阅读(396) 评论(2) 推荐(0) 编辑