随笔 - 4  文章 - 2  评论 - 2 
  2008年4月23日
    只有注册用户登录后才能阅读该文。阅读全文
posted @ 2008-04-23 16:17 风之旖旎 阅读(20) 评论(0) 编辑
  2008年2月18日

 

 string source = "D:\\book1.xls";//execel文件的完整路径
        string sqlconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + source + ";Extended Properties=Excel 8.0";
        
string sql = "SELECT * FROM [Sheet1$]";
        OleDbCommand oldcom 
= new OleDbCommand(sql, new OleDbConnection(sqlconn));
        OleDbDataAdapter oleda 
= new OleDbDataAdapter(oldcom);
        DataSet ds 
= new DataSet();
        oleda.Fill(ds, 
"[Sheet1$]");
        
this.Label1.Text = ds.Tables[0].TableName;
        
this.GridView1.DataSource = ds;
        
this.GridView1.DataMember = "[Sheet1$]";
        
this.GridView1.DataBind();
posted @ 2008-02-18 14:08 风之旖旎 阅读(334) 评论(2) 编辑
  2007年12月18日
摘要: IISWebVirtualDirCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->IISWebVirtualDirusingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespace...阅读全文
posted @ 2007-12-18 10:59 风之旖旎 阅读(179) 评论(0) 编辑
摘要: IISWebServerStateCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->IISServerStateusingSystem;usingSystem.DirectoryServices;usingSystem.Collections;names...阅读全文
posted @ 2007-12-18 10:55 风之旖旎 阅读(111) 评论(0) 编辑