摘要: private void DataTable2Excel(System.Data.DataTable dtData) ...{ System.Web.UI.WebControls.DataGrid dgExport = null; System.Web.HttpContext curContext = System.Web.HttpContext.Current; System.IO.StringWriter strWriter = null; System.Web.UI.HtmlTextWriter htmlWriter = null; if (dtData != null) ...{ c 阅读全文
posted @ 2010-12-24 17:08 小锋神 阅读(6063) 评论(0) 推荐(1) 编辑
摘要: 根据月份算这个月的天数。C# code DateTime d = new DateTime(2008,8,8); System.Globalization.Calendar c = new System.Globalization.GregorianCalendar(); int daysInAugust = c.GetDaysInMonth(d.Year, d.Month); // 31法定节假日that is a bit difficult, you might:C# code DateTime[] m_Holidays = new DateTime[] { new DateTime(20 阅读全文
posted @ 2010-12-24 11:00 小锋神 阅读(681) 评论(0) 推荐(1) 编辑