08 2016 档案
摘要:1,IP填错。2,防火墙太严。3,使用过别的VPN软件。4,服务器上服务里Protected Sqwerrage和Routing and Remote Access这两项是否启动。5,重启电脑,删除原来建好的,重新一个新的VPN连接。6,打开 开始-运行-输入cmd,输入命令ipconfig /fl
阅读全文
摘要:// 时间戳转为C#格式时间 private DateTime StampToDateTime(string timeStamp) { DateTime dateTimeStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); lo...
阅读全文
摘要:HttpUtility.UrlDecode("\u4e0b\u6ce8\u903e\u65f6"); HttpUtility.UrlDecode("\\u5c1a\\u672a\\u5f00\\u76d8".Replace("\\", "%"));
阅读全文
摘要:JObject jsonData = new JObject(); jsonData.Add("1", "1"); jsonData.Add("2", "1"); using (IEnumerator> enumerator = jsonData.GetEnumerator()) { if (enumerator.MoveNext()) { K...
阅读全文
摘要://System.Environment.Exit(0); //Process.GetCurrentProcess().Kill(); //System.Threading.Thread.CurrentThread.Abort(); System.Diagnostics.Process.GetCurrentProcess().Kill(); Application.Exi...
阅读全文
摘要:using ConsoleApplication1; using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Text; using System
阅读全文
摘要:窗体FormBorderStyle属性设置为:FixedSingle,再把最大化禁用就可以了
阅读全文
摘要:Visual Studio里的摘要:处理当前在消息队列中的所有 Windows 消息。 交出CPU控制权,让系统可以处理队列中的所有Windows消息,比如在大运算量循环内,加Application.DoEvents可以防止界面停止响应,因为winform的消息循环是一个线程来处理,那么假如你的某个
阅读全文
摘要:在应用程序池设置中将“加载用户配置文件”(Load User Profile)设置为true,问题就解决。
阅读全文
摘要:private void lt_log_MouseClick(object sender, MouseEventArgs e) { Clipboard.SetDataObject(lt_log.SelectedItem.ToString()); }
阅读全文
摘要:SELECT STUFF( (SELECT Distinct '|'+ProductCode FROM [chexian].[dbo].[ProxyServer] WHERE CompanyID=1069 FOR XML PATH('') ),1,1,'')
阅读全文
摘要:关闭rdpclip.exe进程, 开始->运行->rdpclip.exe 重新运行此程序
阅读全文
摘要:有时会遇到获取Token只能获取一半的问题,明明有两个Cookie,但只获取到一个,这个是因为301重定向跳转设置问题,设置为True就可以获取到完整的Token了.
阅读全文
摘要:select * from [ProxyServer] where [CompanyID] in (select [CompanyID] from [ProxyServer] group by [CompanyID] having count(*)>1)
阅读全文
摘要:/// /// 提交数据请求 /// /// 请求提交的地址 如:https://car.etaiping.com:6004/ecms2/portal/商户号/请求类型(接口名称) /// 提交的数据(字符串) /// public string RequestData(string PostD...
阅读全文
摘要://创建XML XElement xelement = new XElement("request", new XElement("head", new XElement("msgId", System.Guid.NewGuid().ToString()),// new XElement(...
阅读全文
摘要://1. ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true; //2. ServicePointManager.ServerCertificateValidationCallback = new Remot...
阅读全文

浙公网安备 33010602011771号