- 博客(7)
- 资源 (4)
- 收藏
- 关注
转载 截取double后面小数点数量
double size = 19.0123456;size = Convert.ToDouble(String.Format("{0:N2}", size)); //N2就是取2位,N3就是取3位
2012-08-21 09:44:17 968
转载 检查一个字符是否在一段字符串中
public static bool IsAccess(string id,string accessids){ return new List(accessids.Split(',')).IndexOf(id)>=0;}//返回true,可以访问;否则不可以。调用如下:if(IsAccess("7","17,33,21")) //检查7是否在17,33,21中{ //
2012-08-20 12:53:14 565
转载 .NET发邮件
来自:公司网站代码1.web.config( 内添加) 2. public static void sendMail(string smtpserver, string userName, string pwd, string strfrom, string strto, string subj, string bodys) {
2012-08-13 10:17:21 1042
转载 Microsoft.JScript找不到JScript引用问题
网站--添加引用---"Microsoft.JScript"和"Microsoft.Vsa"
2012-08-13 09:47:04 2339
转载 合并DataTable
DataTable dt3 = dt1.Clone();for(inti = 0;i {dt3.Columns.Add(dt2.Columns[i].ColumnName);}object[] obj = new object[dt2.Columns.Count];for(inti = 0;idt1.Rows.Count;i++){dt1.Rows[i].Ite
2012-08-08 10:37:09 376
转载 SQL查询今天、昨天、7天内、30天
今天的所有数据:select * from 表名 where DateDiff(dd,datetime类型字段,getdate())=0昨天的所有数据:select * from 表名 where DateDiff(dd,datetime类型字段,getdate())=17天内的所有数据:select * from 表名 where DateDiff(dd,datetime类型字段,get
2012-08-07 13:56:13 75642 3
转载 js取得当前页面url
转自:http://www.2cto.com/kf/201203/121644.html如果获取“当前”域名host = window.location.host; url=document.domain; url = window.location.href; 取得完整url路径: 用以下代码可以完整研证结果: thisURL = d
2012-08-06 14:15:45 782
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人