![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Webapi
文章平均质量分 60
放开那段代码让我来
努力学习
展开
-
webApi2--get与Post提交
1.公共方法: public class HttpData { //POST请求 public static string HttpPost(string url, string body) { //ServicePointManager.ServerCertificateValidationCallback原创 2017-10-27 19:23:54 · 950 阅读 · 0 评论 -
C#webApi
1、 public class BookChapter { /// /// 号码 /// public int Number { get; set; } /// /// 标题 /// public string Title { get; set; }原创 2017-12-03 16:09:44 · 1246 阅读 · 0 评论 -
C#操作WebApi(Sql参数化)
1.WebApi使用: 引用Newtonsoft.Json.Dll 调用(对象-键与值)::::: 修改路由规则:原创 2017-08-01 15:07:17 · 1757 阅读 · 0 评论 -
webApi调用
1.WebApi接口前端调用webApi后端调用实例说明http://blog.csdn.net/shiyaru1314/article/details/51065410原创 2017-07-01 10:22:20 · 673 阅读 · 0 评论 -
webApi读取解析xml
1、WebApiConfig.cs路由这里的参数与WebApi里面接口参数名一致:(二图中idCard与一图的参数xml必须一致)public class LaunchController : ApiController { CardInfo cdm = new CardInfo(); List<CardInfo> list = new L...原创 2019-07-19 20:46:14 · 1571 阅读 · 0 评论 -
webApi+Ajax传参与接收
1、Post请求不同类型///////===========dynamic$.ajax({ url: "api/Launch/Data", type: "post", data: JSON.stringify({ xml: xmlstr }), ...原创 2019-07-19 22:06:26 · 2046 阅读 · 2 评论