摘要: msg = @"" + msg;MessageBox.RegisterScript("alert('" + msg + "');"); 阅读全文
posted @ 2011-01-14 20:25 awp110 阅读(156) 评论(0) 推荐(0) 编辑
摘要: entity.WordDate =(System.DateTime)dr["WordDate"];//值是9999-12-31 23:59:59 DateTime.MaxValueif(entity.WordDate ==DateTime.MaxValue)//false{}貌似ToDateTime方法只能转换精确到秒的时间字符串,毫秒级的时间字符串系统抛出异常,说没有匹配的转换格式。if(entity.WordDate.ToShortDateString() ==DateTime.MaxValue.ToShortDateString() )//false{} 阅读全文
posted @ 2011-01-14 10:24 awp110 阅读(223) 评论(0) 推荐(0) 编辑