摘要: 常规日期或 G 显示日期和/或时间。对于实数,显示日期和时间,例如 4/3/93 05:34 PM。如果没有小数部分,则只显示日期,例如 4/3/93。如果没有整数部分,则只显示时间,例如 05:34 PM。日期显示由系统的 LocaleID 值确定。 长日期或 D 根据区域设置的长日期格式显示日期。 中长日期 使用适合于宿主应用程序... 阅读全文
posted @ 2008-07-18 23:27 angushine 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 用sql生成数据库集,绑定在 一个datagrid上,然后这样: public void ToExcel(System.Web.UI.Control ctl) { // HttpContext.Current.Response.Charset ="GB2312"; HttpContext.Current.Response.Charset =""; HttpCo... 阅读全文
posted @ 2008-07-18 23:17 angushine 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 操作XML using System; using System.IO; using System.Xml; using System.Text; public class xml { public static void Main(String [] Args) { try { string fileName="book... 阅读全文
posted @ 2008-07-18 23:12 angushine 阅读(111) 评论(0) 推荐(0) 编辑