程序猿

道,可道,非常道;名,可名,非常名;

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2012年9月25日

摘要: 示例代码如下: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace HiddenClassLocalVariablesDemo{ class Program { static void Main(string[] args) ... 阅读全文
posted @ 2012-09-25 17:11 minxiangyang 阅读(124) 评论(0) 推荐(0)

2012年9月24日

摘要: C#实现邮件群发常常应用于网络营销,在网络营销方面卖的很火,大家完全可以做一个专业的群发软件去赚钱。 尊重作者劳动成果,转发请注明出处:http://www.cnblogs.com/minotmin/ 附上邮件发送的基本代码:本例子中使用的QQSMTP using System;using System.Collections.Generic;using System.ComponentModel... 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(216) 评论(0) 推荐(0)

摘要: 本段代码可以实现邮件的群发, 主要是利用了SMTP的知识,测试没有错误,转发请注明出处:http://www.cnblogs.com/minotmin/ using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Syst... 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(123) 评论(0) 推荐(0)

摘要: XML加约束,dtd 代码如下: 转载请注明出处:http://www.cnblogs.com/minotmin/ ]> 王大名 湖南大学计算机理学 警告处分 计算机三级 男 王二 江苏师范教育博士 警告处分一次 全国计算机大赛一等奖 女 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(115) 评论(0) 推荐(0)

摘要: C#进程的开始和结束,源码如下,谢谢 转载请注明出处http://www.cnblogs.com/minotmin/ using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using Sys... 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(132) 评论(0) 推荐(0)

摘要: 下面是我做的一段批量注册163邮箱的代码,经测试是有效的能够批量注册邮箱,可以换成其他的。欢迎大家 欣赏啊,请不要用于不正当的途径。 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;us... 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(282) 评论(0) 推荐(0)

摘要: 我们做一些软件的时候常常要用到换IP的操作,其实简单的换IP的方法就是重新拨号啊,下面就是我实践成功的重新拨号的代码,很简单的,是一个单独的类。 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;//诊断,调用进程 namespace ... 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(215) 评论(0) 推荐(0)

摘要: 简短的一段代码,可以判断webbrowser中打开的网页中是否含有某段字符串。这段代码比较有用,可以利用两个网页的不同之处来分辨出网页是否跳转到了需要的网页。 代码如下:转载请注明出处: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.D... 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(139) 评论(0) 推荐(0)

摘要: C#简单操作XML的基本概念 using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument(); //导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml")); //指定一个节点XmlNode root=xml.... 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(110) 评论(0) 推荐(0)

摘要: 需要添加的命名空间:using System.Xml; 定义几个公共对象:XmlDocument xmldoc ;XmlNode xmlnode ;XmlElement xmlelem ; 1,创建到服务器同名目录下的xml文件: 方法一:xmldoc = new XmlDocument ( ) ;//加入XML的声明段落,XmlDeclaration xmldecl; xmldecl = xml... 阅读全文
posted @ 2012-09-24 20:11 minxiangyang 阅读(97) 评论(0) 推荐(0)