摘要: // 待请求的地址string url = "http://www.cnblogs.com"; // 创建 WebRequest 对象,WebRequest 是抽象类,定义了请求的规定,// 可以用于各种请求,例如:Http, Ftp 等等。// HttpWebRequest... 阅读全文
posted @ 2016-01-25 09:51 m-n 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 一、邮件发送:.NET中自带SMTP邮件发送的类——SmtpClient第一步:导入命名空间:using System.Net.Mail;using System.Net;第二步:编写邮件发送代码: //1.实例化发邮件的类 SmtpClient smtp = new SmtpClie... 阅读全文
posted @ 2016-01-25 09:27 m-n 阅读(302) 评论(0) 推荐(0) 编辑
摘要: LASTYEAR ) return alert("请输入1936-2031有效年份"); sm = SolarMonth - 1; if ( sm 11 ) return alert("请输入有效月份"); leap = GetLeap( SolarYear ); if ( sm == 1... 阅读全文
posted @ 2016-01-25 09:18 m-n 阅读(1200) 评论(0) 推荐(0) 编辑