示例#1
0
 public ActionResult Select()
 {
     using (WebService1Reference.WebService1SoapClient client = new WebService1Reference.WebService1SoapClient())
     {
         var a = client.Select(null);
         return(Json(a, JsonRequestBehavior.AllowGet));//从webservice中获取json数据
     }
 }
示例#2
0
        public ActionResult ShowEdit()
        {
            string id = Request["rowsid"];

            using (WebService1Reference.WebService1SoapClient client = new WebService1Reference.WebService1SoapClient())
            {
                var a = client.Select(id);
                return(Json(a, JsonRequestBehavior.AllowGet));
            }
        }