摘要:
这两天遇到一个问题,调用一个WCF服务的时候,服务器端正常的返回了数据,但是客户端却遇到了一场System.ServiceModel.CommunicationException: The underlying connection was closed: The connection was cl... 阅读全文
摘要:
最近在学习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.... 阅读全文