摘要: 在一次开发过程中发现这样的问题:我引用外部的webservice连接并不是在solution里面的web层,而是在solution里面的类库中引用的,原本在web中引用自动生成的引用路径会在web.config里面生成,例如:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><appSettings> <add key="BidSer.Service" value="http://192.168. 阅读全文
posted @ 2012-11-15 23:45 therockthe 阅读(609) 评论(0) 推荐(0) 编辑
摘要: public decimal GetStringLastNumber(string str) { decimal result = 0; if (str != null && str != string.Empty) { Match match = Regex.Match(str, @"(^.+?)(\d+$)"); if(match.Success) { result = decimal.Parse(match.Groups[2].Value); } } return result; } 阅读全文
posted @ 2012-11-15 15:47 therockthe 阅读(969) 评论(0) 推荐(0) 编辑
摘要: public decimal GetStringLastNumber(string str) { decimal result = 0; if (str != null && str != string.Empty) { Match match = Regex.Match(str, @"(^.+?)(\d+$)"); if(match.Success) { result = decimal.Parse(match.Groups[2].Value); } } return result; } 阅读全文
posted @ 2012-11-15 15:46 therockthe 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1、数据绑定的问题:当DataGridView的DataSource绑定的为DataTable时,当DataTable的内容发生改变时,DataGridView中的内容会自动跟随DataTable改变而不用重新绑定数据源;而把List<T>绑定到DataGridView则不然,当List<T>的内容发生改变是,需要先设置DataGridView的DataSource属性为new List<T>(),然后再把作过改动的List<T>重新赋于DataGridView的DataSource。(注:不能设置DataGridView的DataSource属 阅读全文
posted @ 2012-11-15 10:33 therockthe 阅读(139) 评论(0) 推荐(0) 编辑