摘要: 1.委派的实现过程。 首先来看一下委派,委派其实就是方法的传递,并不定义方法的实现。事件其实就是标准化了的委派,为了事件处理过程特制的、稍微专业化一点的组播委派(多点委派)。下面举一个例子,我觉得把委派的例子和事件的例子比较,会比较容易理解。 using System; class Class1 { delegate int MathOp(int i1,int i2); ... 阅读全文
posted @ 2004-09-27 14:21 23热爱,自学业余码农。 阅读(370) 评论(0) 推荐(1) 编辑
摘要: Asp.net动态生成html页面 作者: 最近研究一个新闻系统,找到了关于asp.net生成HTML的资料 思路 1. 利用如Dw-Mx这样的工具生成html格式的模板,在需要添加格式的地方加入特殊标记(如$htmlformat$),动态生成文件时利用代码读取此模板,然后获得前台输入的内容,添加到此模板的标记位置中,生成新文件名后写入磁盘,写入后再向数据库中写入相关数据。 2. ... 阅读全文
posted @ 2004-09-27 14:03 23热爱,自学业余码农。 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: 用.NET创建Windows服务 作者: 关键字 Windows服务 .NET 出处 http://www.codeguru.com/cs_network/DotNet200304.html 用.NET创建Windows服务译者说明:我是通过翻译来学习C#的,文中涉及到的有Visual Studio.NET有关操作,我都根据中文版的VS.NET显示信息来处理的,可以让... 阅读全文
posted @ 2004-09-27 13:54 23热爱,自学业余码农。 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Today, I find a very very fun thing that we can execute windows API in .net.eg, I call the message service.. public int SendMessage(string sFrom,string sTo,string sMessage) { byte[] bBuffer = Syst... 阅读全文
posted @ 2004-09-27 13:24 23热爱,自学业余码农。 阅读(354) 评论(0) 推荐(0) 编辑
摘要: Request.InputStream return the type of System.IO.Stream, so we can write the data into a file.Coding as follow: string StrFileName="c:\\1.txt"; System.IO.FileStream fs = new System.IO.FileStream(... 阅读全文
posted @ 2004-09-27 11:02 23热爱,自学业余码农。 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: Hi, Everyone, welcome here! I am so glad to register this blog, from now on, I can post all mywords here, In thebefore time I collect good articles with IE favorite, unfortunately when I re-inst... 阅读全文
posted @ 2004-09-27 10:02 23热爱,自学业余码农。 阅读(520) 评论(0) 推荐(0) 编辑