摘要: ds.Tables[0].Rows[0]["c5"] 阅读全文
posted @ 2013-02-25 15:42 侯伟东 阅读(299) 评论(0) 推荐(0)
摘要: 电子表格: string conn = "Provider=Microsoft.jet.OLEDB.4.0;Data Source=" + Server.MapPath("book1.xls") + ";Extended Properties=Excel 8.0;"; OleDbConnection oleconn = new OleDbConnection(conn); OleDbConnection conn = new OleDbConnection("provider=Microsoft.jet.oledb.4.0; 阅读全文
posted @ 2013-02-24 20:18 侯伟东 阅读(199) 评论(0) 推荐(0)
摘要: namespace dal { public class oledo { private olehelp olehelpex; public oledo() { olehelpex = new olehelp(); } /// ... 阅读全文
posted @ 2013-02-24 19:54 侯伟东 阅读(161) 评论(0) 推荐(0)
摘要: 循序渐进很重要 阅读全文
posted @ 2013-02-21 21:19 侯伟东 阅读(187) 评论(0) 推荐(0)
摘要: namespace dal { public class olecado { private olehelp olehelper; public olecado() { olehelper = new olehelp(); } ///... 阅读全文
posted @ 2013-02-21 21:16 侯伟东 阅读(182) 评论(0) 推荐(0)
摘要: Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('上传成功!');</script>"); 阅读全文
posted @ 2013-02-20 20:12 侯伟东 阅读(170) 评论(0) 推荐(0)
摘要: private String HtmlCode(string TString) { if (TString != null) { TString = TString.Replace("\r", "<br>"); TString = TString.Replace(" ", " "); ... 阅读全文
posted @ 2013-02-20 20:07 侯伟东 阅读(244) 评论(0) 推荐(0)
摘要: namespace dal { public class olehelp { private OleDbConnection conn = null; private OleDbCommand cmd = null; private OleDbDataReader oddr = null; public olehelp() { conn = new OleDbConnection(ConfigurationManager.AppSettings["connstring"].ToString()); } privat... 阅读全文
posted @ 2013-02-19 21:31 侯伟东 阅读(235) 评论(0) 推荐(0)
摘要: protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.PostedFile.FileName == "") { Page.ClientScript.RegisterStartupScript(Page.GetType(), "message"... 阅读全文
posted @ 2013-02-14 19:27 侯伟东 阅读(393) 评论(0) 推荐(0)
摘要: protected void btnfileup_Click(object sender, EventArgs e) { try { if (FileUpload1.PostedFile.FileName == "") { Page.ClientScript... 阅读全文
posted @ 2013-02-14 12:12 侯伟东 阅读(164) 评论(0) 推荐(0)