排序
正则过滤字符只保留ip
((1[0-9][0-9]\.)|(2[0-4][0-9]\.)|(25[0-5]\.)|([1-9][0-9]\.)|([0-9]\.)){3}((1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])|([1-9][0-9])|([0-9]))
c#多线程
CancellationTokenSource thread1;//线程 Thread thread;//线程 thread1 = new CancellationTokenSource(); thread = new Thread(() => tick());//tick()子程序 thread.Start(); thread1.Can...
c#不卡界面延迟 使用Thread可能会导致界面卡顿,可以通过使用BackgroundWorker和async/await模式、使用Delay函数、使用timer控件对要刷新的控件进行定时刷新、使用委托和线程安全的方法更新UI控件等方法解决
使用Delay函数使用timer控件对要刷新的控件进行定时刷新对刷新频率要求不高的时候,可以使用该方法。 //不卡界面延迟 public static void Delay(int mm) { DateTime current = DateTime.Now; w...
iis web.config http跳转https配置
iis net 2.0经典模式下配置文件 配置好后 网址可自动跳转到https<rewrite>标签的内容放入<system.webServer> 没有的话直接复制 <system.webServer>标签下所有内容到配置文件...
NET网站通过web.config 实现http跳转到https
NET网站通过web.config 实现http跳转到https代码如下:<system.webServer> <rewrite> <rules> <rule name='http_toHttps' stopProcessing='true'> <match url='(.*)...
Cloudflare 取客户ip C#和php代码
一·C#Cloudflare 取客户ip using Microsoft.AspNetCore.Http; using System.Linq; namespace myproject.Extensions { public static class HttpContextAccessorExtensions { public static str...
request获取指定编码的数据
SearchName = HttpUtility.ParseQueryString(Request.Url.Query, System.Text.Encoding.GetEncoding('GB2312'))['SearchName']; asp.net代码
谨慎使用:伪静态URLRewriter.dll 导致c盘临时文件过多
这个问题遇到时候是客户数据库在百万级出现的 路径C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files 32位 路径C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Tempor...
.net3.5安装失败解决方法
下载3.5离线包.cba格式的 放入C:\Windows目录 dos管理员模式运行 dism /online /Enable-Feature /FeatureName:NetFx3 /Source:'%windir%' /LimitAccess
wwwroot 5个月前0
感谢分享draculaqk 9个月前0
感谢分享fiche2012 1年前0
汉化文件怎么用呀?放到根目录/lang里面也扫描不到啊?fiche2012 1年前0
感谢分享fiche2012 1年前0
66666fiche2012 1年前0
感谢分享a914404191 1年前0
为什么看不到附件地址呢a914404191 1年前0
感谢分享