摘要:
ASP.NET Formwork Api / ASP.Net Core Api 做比较。 有关 Global.asax、FilterConfig.cs 和 RouteConfig.cs 等都被 Program.cs 和 Startup.cs两个类取而代之. 程序中 把Program.cs 作为 We 阅读全文
摘要:
引用 类库: using Org.BouncyCastle.Crypto.IO; using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Security; usi 阅读全文
摘要:
1.add-migration addtable 一切正常 2.在update-database -verbose 出现奇葩bug System.Globalization.CultureNotFoundException: Only the invariant culture is support 阅读全文
摘要:
通过for与while的嵌套做了一个排除相同数字的审查机制,如果生成了数组中已有的数字就重新生成一个数字,继续循环排查,直到生成的数字是数组中不存在的数字 数组长度不能超过随机数范围否则会死循环 using System; namespace notRepeat { class Program { 阅读全文
摘要:
一、XSS漏洞定义 XSS攻击全称跨站脚本攻击,它允许恶意web用户将代码(如:html代码)植入到页面上,当访问到该页面时,嵌入到页面的html代码会自动执行,从而达到恶意攻击的目的。 二、解决方案 1.新建立一个XSSHelper帮助类 public static class XSSHelper 阅读全文