上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 阅读全文
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 黎东海 阅读(745) 评论(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 黎东海 阅读(2226) 评论(1) 推荐(1) 编辑
摘要: 1.程序池设置为经典模式. 2.web.config添加以下代码 <system.webServer> <handlers> <add name="StaticFile1" path="*.*" verb="*" modules="StaticFileModule,DefaultDocumentModule,Directory... 阅读全文
posted @ 2013-04-16 18:36 黎东海 阅读(233) 评论(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 黎东海 阅读(216) 评论(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 黎东海 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 本工具已发布到:http://dyruntime.codeplex.com最后要发布基于silverlight的产品。其中一种解决方案是要让客户自己直接配置服务器。而且服务器还很可能是xp,由于是局域网应用性能的问题我们可以不作计较。目标:1.尽可能简单的让使用者直接运行到指定的基于.net4.0的web程序。2.必须可以让局域网内任意端终正常访问。为解决这两个问题我首先试过Visual studio development server。的确可以运行.net4.0的web程序。但很可能它是绝对不支持局域网让运行的。其它还有试很多各种网络的所谓微型服务器。全部大多数是基于VSDS这样技术的。只 阅读全文
posted @ 2013-01-15 20:23 黎东海 阅读(1974) 评论(7) 推荐(4) 编辑
摘要: 由于wp7没有实现Enum的GetNames方法。所以要自己实现。以下代码: public class Enum<T> { public static IEnumerable<string> GetNames() { var type = typeof(T); if (!type.IsEnum) ... 阅读全文
posted @ 2013-01-05 14:25 黎东海 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 今天发现一个免费而又出色的WordPress模板。大气而简约。配色舒服。还有多种配色方案可以后台切换:在线示例地址:http://dyok.net模版下载:http://files.cnblogs.com/jacle169/fringetech.zip 阅读全文
posted @ 2013-01-03 15:11 黎东海 阅读(299) 评论(0) 推荐(1) 编辑
摘要: //重启程序 string strAppFileName = Process.GetCurrentProcess().MainModule.FileName; Process myNewProcess = new Process(); myNewProcess.StartInfo.FileName = strAppFileName; myNewProcess.StartInf... 阅读全文
posted @ 2012-12-10 09:25 黎东海 阅读(1418) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页