04 2013 档案

摘要: 阅读全文
posted @ 2013-04-22 11:22 黎东海 阅读(100) 评论(0) 推荐(0) 编辑
摘要://取当前整个星期时间范围DateTime startDate = DateTime.Today.Date.AddDays(-(int)DateTime.Today.DayOfWeek), // prev sunday 00:00endDate = startDate.AddDays(7); // next sunday 00:00//取当前整个月时间范围int CurrentYear = Dat... 阅读全文
posted @ 2013-04-20 17:58 黎东海 阅读(751) 评论(0) 推荐(0) 编辑
摘要:using System;using System.ComponentModel;using System.Linq;[Category("nice")]class Foo { }static class Program{ static void Main() { var ca = TypeDescriptor.GetAttributes(typeof(Foo)) ... 阅读全文
posted @ 2013-04-20 11:40 黎东海 阅读(2260) 评论(1) 推荐(1) 编辑
摘要:1.程序池设置为经典模式. 2.web.config添加以下代码 <system.webServer> <handlers> <add name="StaticFile1" path="*.*" verb="*" modules="StaticFileModule,DefaultDocumentModule,Directory... 阅读全文
posted @ 2013-04-16 18:36 黎东海 阅读(235) 评论(0) 推荐(0) 编辑
摘要:引用C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\System.ServiceModel.Web.dllusing System.Runtime.Serialization.Json;internal string SerializeToJsonString(object objectToSerialize) { using (MemoryStream ms = new MemoryStream()) { DataContractJsonSerialize... 阅读全文
posted @ 2013-04-11 14:55 黎东海 阅读(218) 评论(0) 推荐(0) 编辑
摘要:server: //.net framework4.0 not profile //destop app using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.Coll... 阅读全文
posted @ 2013-04-03 20:13 黎东海 阅读(238) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示