摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text; using System.Configuration;using System.IO;using System.Net;using S... 阅读全文
posted @ 2011-09-06 17:42 寶貝尐膤 阅读(131) 评论(0) 推荐(0) 编辑
摘要: using System;using System.IO;using System.Collections;using System.Collections.Specialized;using System.Web; namespace AppUtility{ /// /// LogWriter ... 阅读全文
posted @ 2011-09-06 17:40 寶貝尐膤 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1。先再webconfig中配置好ftp地址的用户名和密码 2.读取配置文件中的信息,下载ftp上的文件 阅读全文
posted @ 2011-09-06 17:29 寶貝尐膤 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1。先根据url地址取得html源代码,设置超时时间以防请求服务器没反应。 2.解析table表格中的数据,根据关键字截取table表格的源代码字符串。 此过程中遇到过一个错误:无法获取“WebBrowser”控件的窗口句柄。不支持无窗口的 ActiveX 控件 如果有80个页面需要解析则每... 阅读全文
posted @ 2011-09-06 16:24 寶貝尐膤 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 此服务主要用于开启服务后定时往数据库中插入数据,直到关闭服务 1.创建一个Windows Service 项目 2.添加一个service业务功能,用一个计时器(timer)定时往数据库中插入记录 此处需要注意,在InitializeComponent方法中,需要将 private Syst... 阅读全文
posted @ 2011-09-06 15:39 寶貝尐膤 阅读(190) 评论(0) 推荐(0) 编辑