2024年11月13日
摘要:
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Threadi
阅读全文
posted @ 2024-11-13 15:11
RookieBoy666
阅读(19)
推荐(0)
2024年11月1日
摘要:
1.安装包: Install-Package FluentScheduler 2. Global.asax添加 JobManager.Initialize(new MyRegister()); 3.添加类 public class MyRegister : Registry { public MyR
阅读全文
posted @ 2024-11-01 13:35
RookieBoy666
阅读(21)
推荐(0)
2024年10月29日
摘要:
1.程序集 Install-Package Hangfire.Core Install-Package Hangfire.SqlServer Install-Package Hangfire.AspNet 2.web.config加配置 <connectionStrings> <add name="
阅读全文
posted @ 2024-10-29 11:06
RookieBoy666
阅读(118)
推荐(0)
2024年10月16日
摘要:
EXEC master.dbo.sp_addlinkedserver @server = N'192.168.2.2', @srvproduct = N'sqlserver', @provider = N'MSDASQL', @provstr = N'DRIVER={SQL Server Nativ
阅读全文
posted @ 2024-10-16 10:01
RookieBoy666
阅读(133)
推荐(0)
2024年10月11日
摘要:
//sql注入 SqlInjectHelper myCheck = new SqlInjectHelper(Request); bool result = myCheck.CheckSqlInject(); if (result) { //Response.ContentType = "text/p
阅读全文
posted @ 2024-10-11 17:01
RookieBoy666
阅读(28)
推荐(0)
2024年9月23日
摘要:
//格式化Json private string ConvertStringToJson(string str) { //格式化json字符串 JsonSerializer serializer = new JsonSerializer(); TextReader tr = new StringRe
阅读全文
posted @ 2024-09-23 21:00
RookieBoy666
阅读(108)
推荐(0)
2024年9月13日
摘要:
浏览器输入 Insecure origins treated as secure 改为 Enabled 加入网址 多个逗号分割
阅读全文
posted @ 2024-09-13 15:41
RookieBoy666
阅读(166)
推荐(0)
2024年9月2日
摘要:
public enum OSTypeEnum { Windows, Linux, MacOS, Other } #region 浏览器操作系统与网站部署所在操作系统不一致 不让登录 string userAgent = HttpContext.Current.Request.UserAgent; O
阅读全文
posted @ 2024-09-02 11:30
RookieBoy666
阅读(21)
推荐(0)
2024年8月20日
摘要:
获取IP IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName()); var ippaddress = host .AddressList .FirstOrDefault(ip => ip.AddressFamily == AddressFamil
阅读全文
posted @ 2024-08-20 08:43
RookieBoy666
阅读(15)
推荐(0)
2024年8月8日
摘要:
1.程序集引用 NET Framework引用 NET 8 说明 Microsoft.Office.Interop.Excel OfficeOpenXml+EPPlus Office OpenXML,也称为OpenXML或OOXML,是一种基于XML的办公文档格式,包括Word文档、Excel电子表
阅读全文
posted @ 2024-08-08 12:45
RookieBoy666
阅读(28)
推荐(0)