摘要: 这两天遇到一个问题,调用一个WCF服务的时候,服务器端正常的返回了数据,但是客户端却遇到了一场System.ServiceModel.CommunicationException: The underlying connection was closed: The connection was cl... 阅读全文
posted @ 2014-05-29 01:45 Harry Jiang 阅读(1878) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-04 08:56 Harry Jiang 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 最近在学习web开发,试用了一下Jquery的ajax调用。首先,新建一个MVC4的项目,在HomeController.cs中添加一个Action,命名为GetData, 通过这个为ajax提供数据。1 [AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post)]2 public ActionResult GetData(string id)3 {4 return Content("Hello, " + id + "!");5 }[AcceptVerbs(HttpVerbs.... 阅读全文
posted @ 2013-09-21 20:00 Harry Jiang 阅读(354) 评论(0) 推荐(0) 编辑