自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 网上看到的 asp.net 一般处理程序(.ashx)

using System;using System.Web;public class Handler : IHttpHandler {        public void ProcessRequest (HttpContext context) {        context.Response.ContentType = "text/plain";        context.Res

2009-05-08 14:08:00 1217

转载 ASP.NET中GUID类

GUID(Global unique identifier)全局唯一标识符,它是由网卡上的标识数字(每个网卡都有唯一的标识号)以及 CPU 时钟的唯一数字生成的的一个 16 字节的二进制值。GUID 的格式为“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,其中每个 x 是 0-9 或 a-f 范围内的一个十六进制的数字。例如:6F9619FF-8B86-D011-

2009-05-08 11:27:00 2685

原创 Assembly.GetEntryAssembly() 在asp.net 中不能用的原因

Inside ASP.NET there is no concept of an "entry assembly", because the code that is executing was not started by a call to AppDomain.ExecuteAssembly. Rather, it is loaded into an app domain created by

2009-05-08 10:18:00 2106

原创 时间函数

datetime dt = datetime.now;dt.tostring();//2005-11-5 13:21:25dt.tofiletime().tostring();//127756416859912816dt.tofiletimeutc().tostring();//127756704859912816dt.tolocaltime().tostring();//2005-11-5

2009-05-06 15:20:00 408

原创 取得任意两个日期相隔的整月数

/// /// 取得两个日期相隔的整月数(多余的天数忽略)。由前向后算。 /// /// /// /// public int CountMonth(DateTime dtFirst,DateTime dtLast) { int iMonth=0; DateTime dt=dtFirst; while(dt<=dtLast && dt.AddMonths(1)<=dtLast) { d

2009-05-06 15:18:00 788

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除