摘要: #region 返回当前日期的文件夹 /// ///上传文件时自动生成文件夹 /// /// 要保存的路径 /// 返回生成的文件夹 public static string CreateDis(string path) { String st... 阅读全文
posted @ 2014-10-08 19:09 the boy、图样图森破 阅读(383) 评论(0) 推荐(0) 编辑
摘要: functionregExp(reg,str){if(reg.test(str)){returntrue;}else{returnfalse;}} 阅读全文
posted @ 2014-10-08 19:06 the boy、图样图森破 阅读(112) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Draw... 阅读全文
posted @ 2014-10-08 19:05 the boy、图样图森破 阅读(142) 评论(0) 推荐(0) 编辑
摘要: public void SetEmail() { //电子邮件对象 MailMessage mailMessage = new MailMessage(); ///发件人(网站管理员) mailMessage.From = new MailAddress... 阅读全文
posted @ 2014-10-08 19:04 the boy、图样图森破 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 获取地址栏参数(其中name为你所需要的参数值) function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r =... 阅读全文
posted @ 2014-10-08 19:03 the boy、图样图森破 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #region 将datatable数据转化成list public static List ToList(this DataTable dt) where T : class,new() /// /// 将datatable数据转化成list /// /// 泛型T ... 阅读全文
posted @ 2014-10-08 19:02 the boy、图样图森破 阅读(258) 评论(0) 推荐(0) 编辑