摘要: Convert.ToDecimal("-123").ToString("#,#.##") 结果:-123 Convert.ToDecimal("-123.12").ToString("#,#.##") 结果:-123.12 Convert.ToDecimal(float.Parse(e.Value. 阅读全文
posted @ 2017-03-20 12:21 Jack He 阅读(340) 评论(0) 推荐(0)
摘要: FileStream fs=new FileStream(@"D:\6",FileMode.Open,FileAccess.Read); BinaryReader reader= new BinaryReader(fs); string fileclass=""; try{ ... 阅读全文
posted @ 2017-02-27 22:59 Jack He 阅读(6349) 评论(0) 推荐(0)
摘要: Html.DropDownList()赋默认值: 页面代码如下: list = new List { new SelectListItem { Text = "启用", Value = "0",Selected = true}, new SelectListItem { Text = "禁用", Value = "1"... 阅读全文
posted @ 2017-02-23 11:51 Jack He 阅读(168) 评论(0) 推荐(0)
摘要: DATEDIFF 函数 [日期和时间] 功能 返回两个日期之间的间隔。 语法 DATEDIFF ( date-part, date-expression-1, date-expression-2 ) date-part : year | quarter | month | week | day | hour | minute | second | millisecond 参数 date-... 阅读全文
posted @ 2017-02-22 15:56 Jack He 阅读(462) 评论(0) 推荐(0)
摘要: 截取字符串(指定长度) 把字符串转换成数字 使用正则表达式判断数字 Javascript IsNaN()函数 js 得到当前季度 阅读全文
posted @ 2017-02-20 16:37 Jack He 阅读(444) 评论(0) 推荐(0)
摘要: 无法将带 [] 的索引应用于“System.Dynamic.DynamicObject”类型的表达式 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: Microsoft.CSharp.RuntimeBi 阅读全文
posted @ 2016-12-29 20:50 Jack He 阅读(5549) 评论(0) 推荐(1)
摘要: string path = "C:\\dir1\\dir2\\foo.txt"; string str = "GetFullPath:" + Path.GetFullPath(path) + "\r\n"; str += "GetDirectoryName:" + Path.GetDirectoryName(path) + "\r\n"; str += "GetFileName:" ... 阅读全文
posted @ 2016-11-24 11:43 Jack He 阅读(1974) 评论(0) 推荐(0)
摘要: 打开文件夹 Users\<CurrentUser>\AppData\Local\Microsoft\VisualStudio\<version> 删除文件夹 ComponentModelCache 重启 Visual Studio. 阅读全文
posted @ 2016-11-09 15:21 Jack He 阅读(2055) 评论(1) 推荐(1)
摘要: 1.http://www.c-sharpcorner.com/search/sql%20server%20reporting%20services 2.https://msdn.microsoft.com/zh-cn/library/ms156305(v=sql.105).aspx 3.http:/ 阅读全文
posted @ 2016-10-27 00:14 Jack He 阅读(245) 评论(0) 推荐(0)
摘要: 如果您希望在计算或显示时包含或排除特定值,可向数据集、数据区域或组添加筛选器。在运行时应用筛选器的顺序为:先对数据集,再对数据区域,最后对组,并按照组层次结构自上而下的顺序。在表、矩阵或列表中,对行组、列组和相邻组分别应用各自的筛选器。在图表中,对类别组和序列组分别应用各自的筛选器。 若要添加筛选器 阅读全文
posted @ 2016-10-27 00:09 Jack He 阅读(1557) 评论(0) 推荐(0)