摘要:
1:上传文件实例public void UploadXMLLog(string xmlpath) { NameValueCollection nvc = new NameValueCollection(); CookieContainer cookies = new CookieContainer(... 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.IO; 6 using System.Net; 7 8 namespace X... 阅读全文
摘要:
1、 通过HttpWebRequest发起一个Post请求,并获取返回数据 1 使用指定编码格式发送一个POST请求,并通过约定的编码格式获取返回的数据 2 3 Code highlighting produced by Actipro CodeHighlighter (freeware)htt... 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Runtime.Serialization.Json; 6 using Syste... 阅读全文
摘要:
DataTable是我们在进行开发时经常用到的一个类,并且经常需要对DataTable中的数据进行筛选等操作,下面就介绍一下Datatable中经常用到的一个方法——Select,微软提供了四个函数的重载,分别是Select()Select(string filterExpression)Selec... 阅读全文
摘要:
1 class command 2 { 3 public static string startcmd(string command) 4 { 5 string output = ""; 6 try 7 ... 阅读全文
摘要:
错误1无法从程序集“c:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Web.dll”中嵌入互操作类型,因为该程序集缺少“GuidAttribute”特性c:\Windows\Microsoft.NET\Framework\v4.0.30319... 阅读全文
摘要:
1 public static class TableListHelper 2 { 3 4 /// 5 /// 转化一个DataTable 6 /// 7 /// 8 /... 阅读全文
摘要:
1 public void DisposeReportData(SynFileInfo item) 2 { 3 MReport report = new MReport(); 4 report.文件名 = item.DocName; ... 阅读全文
摘要:
1:帮助类 1 public class ExcelHander 2 { 3 private string AList = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 4 private Workbook m_objBook; 5 ... 阅读全文
摘要:
class Program { static void Main(string[] args) { System.Security.Principal.WindowsIdentity identity = System.Security.Pri... 阅读全文
摘要:
异常详细信息: System.InvalidOperationException: DataTable 内部索引已损坏:“5”。[InvalidOperationException: DataTable 内部索引已损坏:“5”。] System.Data.RBTree`1.RBInsert(Int3... 阅读全文
摘要:
基本简介官网:http://www.legroom.net/software/uniextract 【Universal Extractor下载 更新介绍】 想信大家对捆绑”东西“的安装包很不喜欢吧!现在有了些工具就可放心了,事实上,Universal Extractor下载 的幕后功臣是一大堆的... 阅读全文
摘要:
1 /// 2 /// 杀掉进程树 3 /// 4 /// 5 private void KillProcessAndChildren(int pid) 6 { 7 Management... 阅读全文
摘要:
/// /// 监测性能 /// /// private bool MonitorPerformance() { bool res = false; int times = ... 阅读全文
摘要:
首先是获取特定进程对象,可以使用Process.GetProcesses()方法来获取系统中运行的所有进程,或者使用Process.GetCurrentProcess()方法来获取当前程序所对应的进程对象。当有了进程对象后,可以通过进程对象名称来创建PerformanceCounter类型对象,通过... 阅读全文
摘要:
Exsample:System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) 阅读全文
摘要:
Step:设置-〉常规-〉高级启动(立即重启)-〉疑难解答-〉高级选项-〉启动设置-〉重启-〉F7(禁用驱动程序强制签名) 阅读全文