文章分类 -  webapi

webapi 中使用request form
摘要:HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"];//获取传统context HttpRequestBase request = context.Request;//定义传统request对象 string a = request.Form["Key"]; var t... 阅读全文
posted @ 2019-01-16 10:03 FL0528
.net 4.0 webapi 的跨域问题
只有注册用户登录后才能阅读该文。
posted @ 2019-01-12 16:16 FL0528
HttpWebRequest 的Post 请求和Get请求
只有注册用户登录后才能阅读该文。
posted @ 2019-01-12 10:40 FL0528
Email 发送
摘要:/// <summary> /// 发送邮件,成功返回true,否则false /// </summary> /// <param name="to">收件人</param> /// <param name="body">内容</param> /// <param name="title">标题</ 阅读全文
posted @ 2019-01-07 14:24 FL0528
jquery 提交base64 图片 后台解码保存 /20200921更新:后台base65转换image
摘要:Jquery Image 标签转Base64方法: function getBase64Image(img) { var canvas = document.createElement("canvas"); var theImage = new Image(); theImage.src = img 阅读全文
posted @ 2019-01-02 15:22 FL0528
mvc4 web api help page
只有注册用户登录后才能阅读该文。
posted @ 2018-12-27 15:13 FL0528
web api 传参任意字符串
只有注册用户登录后才能阅读该文。
posted @ 2018-12-26 11:59 FL0528
webapi session使用
摘要:webapi 使用session 需要现在Global.asaxc初始化: 使用: 初始化之后可以用上下文httpcontent取到前台传来的参数: 设置token过期时间 //这里我设置了但是好像没有生效 时间过了仍然存在 需要后面再研究 阅读全文
posted @ 2018-12-26 11:53 FL0528