摘要: 把一个页面A提交,然后获取另一个页面B的整个页面信息,覆盖在提交信息的页面A 阅读全文
posted @ 2013-07-23 11:04 纵一苇之所如- 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 如果是两个数组进行对比,去掉相同的数组元素。 阅读全文
posted @ 2013-07-18 10:32 纵一苇之所如- 阅读(4478) 评论(0) 推荐(0) 编辑
摘要: Js日期选择器并自动加入到输入框中Js日期选择,可以的一个页面中重复使用本JS日历,兼容IE及火狐等主流浏览器,而且界面简洁、美观,操作体验也不错。--------------转自:http://www.codefans.net/jscss/code/646.shtml 阅读全文
posted @ 2013-07-15 16:45 纵一苇之所如- 阅读(918) 评论(4) 推荐(0) 编辑
摘要: chrome浏览器 阅读全文
posted @ 2013-07-02 16:43 纵一苇之所如- 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: C# 用Mutex或进程限制一台电脑上同时打开多个实例 阅读全文
posted @ 2013-06-24 10:29 纵一苇之所如- 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Diagnostics;namespace CmdCallbackShow{ // 1.定义委托 public delegate void DelReadStdOutput(string result); public d 阅读全文
posted @ 2013-06-19 14:28 纵一苇之所如- 阅读(3033) 评论(0) 推荐(0) 编辑
摘要: private void button4_Click(object sender, EventArgs e) { int marktime = 0; MyMethod my = method; IAsyncResult asyncResult = my.BeginInvoke(MethodCompleted, my); while (!asyncResult.IsCompleted && marktime < 4) { marktime +=... 阅读全文
posted @ 2013-06-08 17:26 纵一苇之所如- 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Public Sub DeownloadFile(ByVal networkfile As String, ByVal locationFileName As String, ByVal PaperDownloadLog As String, ByVal strReferer As String) For index = 1 To 3 '如获取不了重试3次 Dim task As NewTaskDelegate = AddressOf TrytoDownloadFile Dim asyncResult As IAsyncResult = task.BeginInvoke(network 阅读全文
posted @ 2013-06-08 17:00 纵一苇之所如- 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 代理通过http取这个资源的时候,要在在request Header上加入一个被允许的 Referere,一般是那个网站的host判断浏览器请求时HTTP头的Referer字段的值,这个值在asp.net里面可以用 Request.UrlReferrer属性取得Dim myHttpWebRequest As HttpWebRequest = DirectCast(WebRequest.Create(BaseUrl & PDFLinks(i)), HttpWebRequest) myHttpWebRequest.ContentType = "text/html" my 阅读全文
posted @ 2013-06-05 14:13 纵一苇之所如- 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 判断窗体是否已运行 阅读全文
posted @ 2013-05-30 11:17 纵一苇之所如- 阅读(201) 评论(0) 推荐(0) 编辑