1.前言首先呢我不是太喜欢收钱的东西,一来这个东西我挣不了钱,二来不容易改进。所有就找了个开源的收发邮件的组件LumiSoft.Net。大家可以网上搜索相关资料。2.通过POP3协议获取服务器上所有邮件 using(POP3_Client pop=new POP3_Client()) { pop.Connect(popser.ServerAddress,popser.Port);//通过POP3地址,端口连接服务器。 pop.Authenticate(popser.Account,Mail...Read More
posted @ 2011-11-08 17:42 DavidYou Views(81) Comments(0) Edit
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.SessionState;namespace TestWebApplication1{ public class ...Read More
posted @ 2008-04-03 10:12 DavidYou Views(694) Comments(0) Edit
这个框架是国外的作品,借来入门学习用,添加了具体中文注释.个人感觉还是很不错的!!/**//*SimpleAJAXCode-Kit(SACK)*//**//*?005GregoryWild-Smith*//**//*www.twilightuniverse.com*//**//*SoftwarelicencedunderamodifiedX11licence,seedocumentationora...Read More
posted @ 2008-02-02 10:42 DavidYou Views(575) Comments(0) Edit
前段时间看了一篇关于AJAX的博文,文中提到AJAX的沙箱安全模型,但是只是一笔带过。当时很是晕点,经过一番网络搜罗,最后知道此沙箱安全模型非彼沙箱安全模型,于FLASH中的沙箱安全模型比相差是比较大的。AJAX中的沙箱安全模型主要指的是跨域脚本调用的问题。比如我们存在在www.cnblogs.com中的脚本如果想访问www.163.com 脚本是违反沙箱安全模型的。结果肯定会出错。只能是www....Read More
posted @ 2008-01-30 16:33 DavidYou Views(869) Comments(0) Edit
6.1下面为用到委托的几种情况启动线程--在C#中,可以告诉计算机并行运行新的执行序列,这种序列就称为线程,通过System.Threading.Thread的一个实例使用方法Sta通用类库--在通用类库中执行子任务时,要用到委托。事件--GUI编程中也经常用盗委托事例:void EntryPoint(){//do anything;}//通过下面的代码执行新线程Thread NewThread ...Read More
posted @ 2007-04-07 20:49 DavidYou Views(49) Comments(0) Edit
遍历所有行,获取对应行对应列值的统计,此函数写在RowDataBind事件中intmysum1=0;intmysum2=0;protectedvoidGridList_RowDataBound(objectsender,GridViewRowEventArgse){if(e.Row.RowType==DataControlRowType.DataRow){DataRowViewmyrows=(Da...Read More
posted @ 2007-04-04 17:13 DavidYou Views(117) Comments(0) Edit
public voidmain(string[] args){Byte b = 255;checked{b++;}Console.WriteLine(b.ToString());}Results:Unhandled Exception :System.OverflowException:Arithmetic opertation resulted in an overflow at ...;if ...Read More
posted @ 2007-04-02 15:44 DavidYou Views(56) Comments(0) Edit
Condition?True_Value:Flase_ValueExplain:if(Condition == True){return True_Value;}else{returnFlase_Value;}Condition:Boolean ExpressionTrue_Value:The Return Value When Condition Is TrueFalse_Value:The R...Read More
posted @ 2007-04-01 22:03 DavidYou Views(38) Comments(0) Edit