摘要: http://stackoverflow.com/questions/10304863/how-to-use-system-net-httpclient-to-post-a-complex-type 阅读全文
posted @ 2015-10-19 17:26 碎碎虎 阅读(300) 评论(0) 推荐(0)
摘要: 如何获取 innerException 内部错误信息 这断代码看上去可以解决问题,但是党innerException中还有innerException的得时候就无效了。 所以有了下面得扩展方法,使用递归获取innerException,完美解决 参考:http://stackoverflow.com 阅读全文
posted @ 2015-10-19 16:11 碎碎虎 阅读(7810) 评论(0) 推荐(0)
摘要: 如果Controller方法中没有指定请求方式,在RC版本中默认是HttpPost ,Beta版本中支持所有方法GET, PUT, POST and Delete,而在RC版本后做了改变只支持HttpPost。 可以使用[AcceptVerbs("GET", "POST")] 标签来是方法同时支持G 阅读全文
posted @ 2015-10-19 09:24 碎碎虎 阅读(966) 评论(0) 推荐(0)