随笔分类 -  Asp.Net

摘要:.Net Windows Forms(窗体程序)在服务端运行不了的问题(本机可以) 原因:是在Form1的构造函数中多了这几行,在服务端找不到配制文件。 //DomSqlMapBuilder builder = new DomSqlMapBuilder(); //ISqlMapper mapper 阅读全文
posted @ 2024-07-11 13:15 三瑞 阅读(54) 评论(0) 推荐(0)
摘要:C# 枚举帮助类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Utils { /// <su 阅读全文
posted @ 2022-06-18 17:46 三瑞 阅读(234) 评论(0) 推荐(0)
摘要:C# 中执行使用委托执行代码块 以实现公用try catch public static T Exec<T>(Func<T> fun) { T result = default(T); try { result = fun(); } catch { } return result; } protec 阅读全文
posted @ 2022-06-18 17:33 三瑞 阅读(108) 评论(0) 推荐(0)
摘要:C# 会自动替换 变量 把形如 "{{varName}}" 替换成对应的数值 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Sy 阅读全文
posted @ 2022-03-31 16:27 三瑞 阅读(277) 评论(0) 推荐(0)
摘要:C# .Net WebClient http及https请求及上传文件 using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using Syste 阅读全文
posted @ 2021-12-09 17:54 三瑞 阅读(2412) 评论(0) 推荐(0)
摘要:借鉴: https://blog.csdn.net/qq_25407771/article/details/113842722 NuGet上搜 BouncyCastle 并安装,直接上cs文件 using Org.BouncyCastle.Crypto; using Org.BouncyCastle 阅读全文
posted @ 2021-12-09 10:57 三瑞 阅读(1672) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.Linq; using System.Net; using Syst 阅读全文
posted @ 2021-08-24 17:01 三瑞 阅读(601) 评论(0) 推荐(0)
摘要:C# IndexOf 报错 值不能为null,参数名value 原因就是IndexOf 方法中传了null 就把这个错误! 值不能为 null。 参数名: s 赋值也会报上面的错.JsonText = "未能从程序集“”中加类型“”" 阅读全文
posted @ 2021-08-02 18:25 三瑞 阅读(686) 评论(0) 推荐(0)
摘要:拦接器 public class AutoDesensitizationMethodInterceptor : IMethodInterceptor { public object Intercept(IMethodInvocation invocation, params object[] arg 阅读全文
posted @ 2021-05-20 19:51 三瑞 阅读(303) 评论(0) 推荐(0)
摘要:[TestClass] public class FacilityTest {public FacilityTest() { } [TestInitialize] public void InitTestData() { } [TestCleanup] public void ClearTestDa 阅读全文
posted @ 2021-05-20 19:10 三瑞 阅读(84) 评论(0) 推荐(0)
摘要:安装Asp.net mvc4 时报错:x80070005 拒绝访 解决方法: 运行 dcomcnfg 组件服务》计算机》我的电脑》DCOM配置》Windows Management and Instrumentation右击》属性》安全》编辑》将ASPNET这个用户(IIS_IUSRS、IUSR)加 阅读全文
posted @ 2021-03-11 16:52 三瑞 阅读(418) 评论(0) 推荐(0)
摘要:BaseSqlMapDaoEx using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System 阅读全文
posted @ 2021-02-18 17:03 三瑞 阅读(97) 评论(0) 推荐(0)
摘要:JSON 反序列化 报错 Bad state (incorrect header check) 原因是返回有反回的对象多了序列化了一次 所以反两次就对了 阅读全文
posted @ 2021-01-25 14:52 三瑞 阅读(401) 评论(0) 推荐(0)
摘要:文件扩展名Content-Type(Mime-Type)文件扩展名Content-Type(Mime-Type) .*( 二进制流,不知道下载文件类型) application/octet-stream .tif image/tiff .001 application/x-001 .301 appl 阅读全文
posted @ 2021-01-08 11:06 三瑞 阅读(247) 评论(0) 推荐(0)
摘要:外部插件:(http://ffmpeg.org/download.html) FfmpegHelper.cs 文件 using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; u 阅读全文
posted @ 2021-01-05 14:18 三瑞 阅读(193) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-12-01 14:36 三瑞 阅读(0) 评论(0) 推荐(0)
摘要:“/”应用程序中的服务器错误。 编译错误 说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误消息: BC30560: “ExtensionAttribute”在命名空间“System.Runtime.CompilerServices”中 阅读全文
posted @ 2020-11-27 10:03 三瑞 阅读(1078) 评论(0) 推荐(0)
摘要:FileTypeCheck.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.UI.WebContro 阅读全文
posted @ 2020-09-03 17:35 三瑞 阅读(995) 评论(0) 推荐(0)
摘要:原理复制于:https://www.cnblogs.com/luminji/archive/2012/05/30/2511357.html 原理: 原理 会话劫持是指通过非常规手段,来得到合法用户在客户端和服务器段进行交互的特征值(一般为sessionid),然后伪造请求,去访问授权用户的数据。 获 阅读全文
posted @ 2020-09-03 15:43 三瑞 阅读(512) 评论(0) 推荐(0)
摘要:WPF 两套UI样式 https://www.jianshu.com/p/c2bdee10e662 用c#开发桌面应用,如何做出漂亮的界面? - 知乎 https://www.zhihu.com/question/267772520/answer/329104949 阅读全文
posted @ 2020-09-02 20:08 三瑞 阅读(152) 评论(0) 推荐(0)