文章分类 -  .NET

摘要:if(ds == null)//ds为空 if(ds.Tables.Count == 0)//ds中没有表 if(ds.Tables.Count == 1 && ds.Tables[0].Rows.Count == 0)//ds中的表没有数据 阅读全文
posted @ 2011-08-15 11:28 xjtrab 阅读(275) 评论(0) 推荐(0)
摘要:--DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 取当前年月日时分秒 currentTime=System.DateTime.Now; 取当前年 int 年=currentTime.Year; 取当前月 int 月=currentTime.Month; 取当前日 int 日=currentTime.Day; 取当前时... 阅读全文
posted @ 2010-11-16 11:31 xjtrab 阅读(207576) 评论(0) 推荐(8)