2015年1月11日

摘要: 摘自:http://blog.csdn.net/yszwn/article/details/4561463 昨天在修改公司一个邮件程序不能发送附件的程序时,发现附件已经上传到服务器,但是在用System.IO.File.Exist(Path)方法判断附件是否存在时,该方法总是返回false(即使附件... 阅读全文
posted @ 2015-01-11 12:46 润物之音 阅读(645) 评论(0) 推荐(0)
摘要: 摘自:http://blog.csdn.net/xu651871110/article/details/59393401) 建一个发送邮件的通用类using System;using System.Collections.Generic;using System.Linq;using System.... 阅读全文
posted @ 2015-01-11 12:44 润物之音 阅读(272) 评论(1) 推荐(0)

2014年12月17日

摘要: Modelm=newModel{Id=1,Dt=DateTime.Now};JavaScriptSerializerjs=newJavaScriptSerializer();stringstr=js.Serialize(m);str=Regex.Replace(str,@"\\/Date\((\d+... 阅读全文
posted @ 2014-12-17 01:49 润物之音 阅读(153) 评论(0) 推荐(0)

2014年11月17日

摘要: 使用Session的方法应该说很简单,在一个页面赋值,另一个页面调用就可以了。自己在编制程序时犯了一个大错误,即语句的顺序搞倒了,如:Session["UserName"] = nameBox.Text;Response.Redirect("shuru.aspx");先赋值再转页,而我刚开始是反过来... 阅读全文
posted @ 2014-11-17 19:18 润物之音 阅读(482) 评论(0) 推荐(0)

导航