11 2019 档案

摘要:直接上代码: 阅读全文
posted @ 2019-11-22 14:28 代码沉思者 阅读(1188) 评论(0) 推荐(0) 编辑
摘要:网址:https://jwt.io/ 效果: 阅读全文
posted @ 2019-11-20 17:16 代码沉思者 阅读(7080) 评论(1) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; namespace Dw.Util { /// <summary> /// Session 操作类 /// 1、GetSession 阅读全文
posted @ 2019-11-15 13:48 代码沉思者 阅读(1232) 评论(1) 推荐(0) 编辑
摘要:这几天一直在研究IdentityServer4在asp.net core3.0中的应用,下面说说我的理解: 我们每一个.net core 项目大家可以理解为我新建了一个动物园或者植物园等,注册用户想要访问这个动物园或者植物园呢,有的是免费进入的,有的需要身份证和门票! 假如我们新建了一个.net c 阅读全文
posted @ 2019-11-13 15:17 代码沉思者 阅读(353) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Net; using System.Windows.Forms; using System.Globalization; namespace FtpLib { public class FtpWeb { s 阅读全文
posted @ 2019-11-06 17:20 代码沉思者 阅读(2070) 评论(0) 推荐(0) 编辑
摘要:string jsonStr = JsonConvert.SerializeObject(data); FileStream stream = new FileStream(@"C:\Users\YeChangZhong\Desktop\新建文件夹\aa.txt", FileMode.Create);//fileMode指定是读取还是写入 ... 阅读全文
posted @ 2019-11-06 14:00 代码沉思者 阅读(334) 评论(0) 推荐(0) 编辑
摘要:1.前端的处理: 2.后台 1.)添加过滤器,哪里用放哪里 2.)需要验证的方法上直接添加过滤器即可 大功告成 以下为过滤器代码块 /// <summary>/// ajax中加上AntiForgeryToken防止CSRF攻击/// </summary>[AttributeUsage(Attrib 阅读全文
posted @ 2019-11-01 13:36 代码沉思者 阅读(240) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示