摘要: 需求:需要把D盘Source文件夹中的所有名称包含"LTE"的子文件夹Copy到E盘的Backup文件中,实现特定文件夹每天备份。步骤:1,遍历D盘Source文件夹找出所有名称包含LTE的文件,文件路径存放到List<string>中 2,遍历List<string>,把所有文件Copy到E盘的备份文件夹中实现效果:Copy→项目中借助txt文件存放源文件夹路径和目的文件夹路径,以便修改:解决方案截图:实现代码:using System;using System.Collections.Generic;using System.Linq;using 阅读全文
posted @ 2013-05-08 21:27 sirili 阅读(1593) 评论(5) 推荐(0) 编辑
摘要: 1. asp.net web chart http://www.asp.net/web-pages/tutorials/data/7-displaying-data-in-a-chart2. add chart pie http://www.thebestcsharpprogrammerintheworld.com/blogs/how-to-create-a-pie-chart-using-aspnet-and-c-sharp.aspx3.柱狀圖 餅狀圖 http://www.codefinds.net/Static/ASPNET/ASPNETKJ/2011-06/388.htmhttp:// 阅读全文
posted @ 2013-04-07 13:34 sirili 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1,智齿每次上火的时候都疼的要命,发炎出血,但是这个时候是不能拔得,只能吃药。 牙疼是上火引起的炎症,所以不能单纯的吃止痛药,消炎才能真正止痛,医生开出的药方:头孢呋辛酯片+甲硝唑片 阅读全文
posted @ 2013-04-05 09:36 sirili 阅读(564) 评论(0) 推荐(0) 编辑
摘要: HttpPostedFile UpFile = File1.PostedFile; int FileLenght = UpFile.ContentLength; decimal FileSize = FileLenght / 1024; if (FileLenght == 0) { DIVShowGVError.Visible = true; LblShowGVError.Text = "请选择上传文件"; retu... 阅读全文
posted @ 2013-04-01 12:27 sirili 阅读(334) 评论(0) 推荐(0) 编辑
摘要: public static DataTable ExcelToDataSet(string filename) { try { //string strCon = " Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source = " + filename + ";Extended Properties=Excel 8.0"; string strCon = "Provider=Microsoft.ACE.OLEDB.12.0;Data ... 阅读全文
posted @ 2013-03-25 19:22 sirili 阅读(251) 评论(0) 推荐(0) 编辑
摘要: <head id="Head1" runat="server"> <title>无标题页</title> <mce:script type="text/javascript" language="javascript"><!-- function displayCalendar() { var datepicker=document.getElementById("datePicker"); datePicker.style.display= 阅读全文
posted @ 2013-03-22 11:44 sirili 阅读(151) 评论(0) 推荐(0) 编辑
摘要: function LoadImage(ElementID, id) { //ElementID <img>的ID var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //WebClient if (!xmlhttp) { alert("創建xmlhttp對象異常"); return false; } var url = "GetImage.ashx?ID=" + ... 阅读全文
posted @ 2013-03-22 11:17 sirili 阅读(236) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { // 表名+TableAdapter 表名+DataTable 表名+Row ContactTableAdapter adapter = new ContactTableAdapter(); 强类型DateSet.AdventureWorksDataSet.ContactDataTable ContactTable = adapter.GetDataByNameStyle(true); //adap... 阅读全文
posted @ 2013-03-21 14:32 sirili 阅读(154) 评论(0) 推荐(0) 编辑
摘要: protected void ExportToExcel(string FileType, string FileName) { Response.Clear(); Response.Charset = "GB2312"; Response.ContentEncoding = System.Text.Encoding.UTF8; Response.HeaderEncoding = System.Text.Encoding.Default; Response.AppendHeader("Content-Disposi... 阅读全文
posted @ 2013-03-11 19:51 sirili 阅读(119) 评论(0) 推荐(0) 编辑
摘要: using System.DirectoryServices; DirectoryEntry dirEntry = new DirectoryEntry(); dirEntry.Path = "LDAP://IP/DC=;DC=;DC=;DC="; dirEntry.Username = txtUser.Text; dirEntry.Password = txtPassword.Text; dirEntry.AuthenticationTyp... 阅读全文
posted @ 2013-03-06 16:35 sirili 阅读(165) 评论(0) 推荐(0) 编辑