摘要: 1.使用存储过程分页 set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoCREATE PROCEDURE [dbo].[premium_GetPagedReCord] @tblName varchar(255), -- 表名@strGetFields varch... 阅读全文
posted @ 2011-09-16 14:57 寶貝尐膤 阅读(195) 评论(0) 推荐(0) 编辑
摘要: C#的值类型包括:结构体(数值类型,bool型,用户定义的结构体),枚举,可空类型。C#的引用类型包括:数组,用户定义的类、接口、委托,object,字符串。下面用一个实例来看一下引用类型和值类型的区别: class Program { static void Main(string[] ar... 阅读全文
posted @ 2011-09-08 10:57 寶貝尐膤 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑