摘要:
var data =""; using (StreamReader readStream = new StreamReader(context.Request.InputStream, Encoding.UTF8)) { data = readStream.ReadToEnd(); } var pa 阅读全文
摘要:
1.导出html语句 public void OutExcel(object sender, EventArgs e) { var tbHtml = thtml.Value; System.Web.HttpContext.Current.Response.Charset = "UTF-8"; Sys 阅读全文
摘要:
1.SelectSingleNode(xPath) xPxth:xml/cam/type 一层一层递进 阅读全文
摘要:
var tb = evnWarningBll.GatWarning(); var timeFormat = new IsoDateTimeConverter(); timeFormat.DateTimeFormat = "yyyy-MM-dd HH:mm:ss"; _context.Response 阅读全文
摘要:
var data = ""; using (StreamReader readStream = new StreamReader(context.Request.InputStream, Encoding.UTF8)) { data = readStream.ReadToEnd(); } 阅读全文
摘要:
public void Write(string words) { var pathUrl = Server.MapPath("/UpFile/CamInfo"); if (!Directory.Exists(pathUrl)) { Directory.CreateDirectory(pathUrl 阅读全文
摘要:
1.System.Diagnostics.Process.Start("explorer.exe", "http://blog.csdn.net/testcs_dn");2. //调用系统默认的浏览器 System.Diagnostics.Process.Start(http://blog.csdn 阅读全文
摘要:
{"未能加载文件或程序集“log4net, Version=1.2.11.0, Culture=neutral, PublicKe解决方案:1.核对版本号 2.config中的版本号要和引用的一致 阅读全文
摘要:
FileStream fs = new FileStream(@"d:\service.txt", FileMode.OpenOrCreate, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); using ( fs) { usin 阅读全文
摘要:
/// <summary> /// 读取文件 /// </summary> /// <param name="path"></param> /// <returns></returns> public static String ReadFile() { string path = AppDomai 阅读全文