2009年9月18日

异步回调方法的使用

摘要: 来自MSDN:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Securit... 阅读全文

posted @ 2009-09-18 14:55 画一个圆圈 阅读(196) 评论(0) 推荐(0) 编辑

vs2005中发送邮件的方法(C#)

摘要: System.Net.Mail.SmtpClient client = new SmtpClient(); client.Host = "smtp.163.com"; client.UseDefaultCredentials = false; client.Credentials = new... 阅读全文

posted @ 2009-09-18 13:40 画一个圆圈 阅读(143) 评论(0) 推荐(0) 编辑

转C#实现QQ接口软件--QQ的HTTP接口协议探究

摘要: 1、找寻支持QQ HTTP协议的服务器。大家也许会被一些假像所迷惑,也许会认为QQ的HTTP服务器是基于80口进行通信的(如:218.17.209.23:80),其实不然,正真基于HTTP的服务器应该是:http://tqq.tencent.com:8000,它是一个通过8000口进行通讯的服务器... 阅读全文

posted @ 2009-09-18 13:38 画一个圆圈 阅读(278) 评论(0) 推荐(0) 编辑

图片保存到数据库的方法

摘要: public void imgToDB(string sql) { //参数sql中要求保存的imge变量名称为@images //调用方法如:imgToDB("update UserPhoto set Photo=@images where UserNo='" + temp + "'");... 阅读全文

posted @ 2009-09-18 13:30 画一个圆圈 阅读(180) 评论(0) 推荐(0) 编辑

setTimeout 和 setInterval 的区别

摘要: setTimeout (表达式,延时时间)setInterval(表达式,交互时间)延时时间/交互时间是以豪秒为单位的(1000ms=1s)setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次setInterval 在执行时,它从载入后,每隔指定的时间就执行一次... 阅读全文

posted @ 2009-09-18 13:21 画一个圆圈 阅读(133) 评论(0) 推荐(0) 编辑

2009年9月17日

与数据库进行异步操作的连接字符串的写法

摘要: string GetConnectionString() // To avoid storing the connection string in your code, // you can retrieve it from a configuration file. // If... 阅读全文

posted @ 2009-09-17 19:33 画一个圆圈 阅读(102) 评论(0) 推荐(0) 编辑

2009年9月16日

获取请求的长度大小……

摘要: IServiceProvider provider=HttpContext.Current; HttpWorkerRequest worker =(HttpWorkerRequest)provider.GetService(typeof(HttpWorkerRequest)); Respons... 阅读全文

posted @ 2009-09-16 17:39 画一个圆圈 阅读(159) 评论(0) 推荐(0) 编辑

序列化和反序列化

摘要: using System;using System.Data;using System.Configuration;using System.Runtime.Serialization.Formatters.Binary;using System.IO;[Serializable]public c... 阅读全文

posted @ 2009-09-16 13:43 画一个圆圈 阅读(95) 评论(0) 推荐(0) 编辑

返回一个Internet的响应Headers

摘要: HttpWebRequest wr =(HttpWebRequest)WebRequest.Create("http://www.goole.cn"); HttpWebResponse wrp =(HttpWebResponse)wr.GetResponse(); if (wrp.Status... 阅读全文

posted @ 2009-09-16 11:43 画一个圆圈 阅读(83) 评论(0) 推荐(0) 编辑

通过流获取Internet上的文件

摘要: HttpWebRequest httprequest = null; HttpWebResponse httpresponse = null; Stream sr = null; //try //{ httprequest = (HttpWebRequest)WebRequest.Cre... 阅读全文

posted @ 2009-09-16 11:32 画一个圆圈 阅读(148) 评论(0) 推荐(0) 编辑

导航