摘要: location.search是从当前URL的?号开始的字符串如:http://www.baidu.com/s?wd=baidu&cl=3它的search就是?wd=baidu&cl=3如: location.search.substr(1).split("&")[0]可以返回第一个参数:wd=baidu如: location.search.split('?')[1]可以返... 阅读全文
posted @ 2010-03-04 09:30 smodi 阅读(15241) 评论(0) 推荐(3)
摘要: 利用System.Net.Mail 实现电子邮件发送到简单邮件传输协议 (SMTP) 服务器进行传送.1.修改webconfig文件<system.net> <mailSettings> <smtp> <network host="smtp host" port="25" userName="username" password="password"/&g... 阅读全文
posted @ 2010-03-03 15:15 smodi 阅读(313) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Text.RegularExpressions;nam... 阅读全文
posted @ 2010-03-02 10:56 smodi 阅读(344) 评论(0) 推荐(0)
摘要: The .NET Framework provides a set of powerful string functions. These building blocks can be used to write more complex algorithms for handling string data. However developers aiming to write fast and... 阅读全文
posted @ 2010-03-01 10:04 smodi 阅读(307) 评论(0) 推荐(0)
摘要: 原文地址:http://article.yeeyan.org/view/123655/76414新的一年已经来临,是时候该辞旧迎新。虽然设计新趋势并不是从新年的第一天开始,但这种转换确实是在在地发生着,从我们渴望的年初到进行总结的年尾。大多数时候这种变化是微妙的。眼下最热潮流的趋势要么完美,要么是重新演绎。潮流趋势帮助我们这些设计师不断进化。对于我们掌握设计美学来说,我们不断地将设计潮流向前推进,... 阅读全文
posted @ 2010-02-05 11:22 smodi 阅读(361) 评论(0) 推荐(0)
摘要: System.IO.Log命名空间定义用于登录到面向记录的顺序I/O系统的接口.可以实现自己的诊断日志记录系统或事务处理系统,以便实现事务持久性.system.io.log.dll 的默认位置为 %programfiles%\Reference Assemblies\Microsoft\Framework\v3.0\简单文件日志系统描述FileRecordSequence类型,该类型是基于文件系统... 阅读全文
posted @ 2010-01-28 09:05 smodi 阅读(2715) 评论(1) 推荐(0)
摘要: StreamWriter类 实现一个TextWriter,使其以一种特定编码向流中写入字符原型: [SerializableAttribute] [ComVisibleAttribute(true)] public class StreamWriter : TextWriter默认使用UTF8Encoding的实例,不是线程安全的看一下构造函数原型: StreamWriter(Stream) 用其... 阅读全文
posted @ 2010-01-27 08:59 smodi 阅读(10906) 评论(0) 推荐(1)
摘要: [代码]>>把Color转变成#FFFFFF格式的字符串 Color c = Color.White; String s = String.Format("#{0:X2}{1:X2}{2:X2}",c.R,c.G,c.B); >>#FFFFFF格式的字符串转变成Color Color c = System.Drawing.ColorTranslato... 阅读全文
posted @ 2010-01-26 09:03 smodi 阅读(7332) 评论(0) 推荐(0)
摘要: 转自:http://article.yeeyan.org/view/103880/697711) 村子里有100对夫妻,其中每个丈夫都瞒着自己的妻子偷情。。。村里的每个妻子都能立即发现除自己丈夫之外的其他男人是否偷情,唯独不知道她自己的丈夫到底有没有偷情。村里的规矩不容忍通奸。任何一个妻子,一旦能证明自己的男人偷情,就必须当天把他杀死。村里的女人全都严格照此规矩办事。一天,女头领出来宣布,村里至少... 阅读全文
posted @ 2010-01-21 16:43 smodi 阅读(20004) 评论(7) 推荐(4)
摘要: 1.定义变量 IEnumerable<string> lstNew = null; List<string> lstOne = new List<string>(){"January", "February", "March"}; List<string> lstTwo = new List<str 阅读全文
posted @ 2010-01-19 15:42 smodi 阅读(38221) 评论(3) 推荐(0)