上一页 1 2 3 4 5 6 7 ··· 25 下一页
摘要: 写入数据库文件 private void Inti() { string dllpath = Environment.CurrentDirectory + "\\DLLFile\\"; try { if (string.IsNullOrEmpty(txtOrderNo.Text)) { Messag 阅读全文
posted @ 2023-09-14 14:45 博客YS 阅读(173) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 反射调用程序集方法 /// </summary> public void GetAssembly(string dllPath) { //加载程序集(dll文件地址),使用Assembly类 //"D:\\VSXM\\VS2022\\AirTightness\\A 阅读全文
posted @ 2023-09-14 14:38 博客YS 阅读(134) 评论(0) 推荐(1) 编辑
摘要: Dapper sql入参 //防SQL注入攻击 var parms = new { userId = userId, pwd = pwd }; //DynamicParameters parms = new DynamicParameters(); //parms.Add("userId", use 阅读全文
posted @ 2023-09-14 10:48 博客YS 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 执行 pictureBox1.Image.Save报错: System.Runtime.InteropServices.ExternalException:“GDI+ 中发生一般性错误。” 用Bitmap解决 SaveFileDialog saveFileDialog = new SaveFileD 阅读全文
posted @ 2023-09-13 14:21 博客YS 阅读(412) 评论(0) 推荐(0) 编辑
摘要: public class Check : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string sendStr = st 阅读全文
posted @ 2023-08-30 15:58 博客YS 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1、适用客户端程序,如winform,WPF程序; 目的:当有的功能模块代码,没有漏掉异常捕获,会导致整个程序自动异常关掉(UI线程),为了确保整个程序正常运行,即使别人写的模块有问题a56爆大奖在线娱乐也能正常运行,并能捕获异常,保证UI线程健壮; 增加整个UI线程异常捕获 /// <summary> /// 应用 阅读全文
posted @ 2023-08-21 14:40 博客YS 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 创建全局应用程序类Global.asax, 在方法Application_BeginRequest 并添加如下代码:利用替换的方式实现效果 string path = Request.Url.ToString(); path = Request.Url.LocalPath.ToString(); i 阅读全文
posted @ 2023-08-02 11:30 博客YS 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 参考网址https://blog.csdn.net/kexiuyi/article/details/71488354 如何用aspnet_regiis注册4.0框架 ①找到.NET 4.0框架下aspnet_regiis所在目录,在C盘根目录中搜索aspnet_regiis,找到4.0框架下aspn 阅读全文
posted @ 2023-07-27 15:20 博客YS 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 很多时候,由于问题导致文件一直处于占用无法操作,如何快速找到占用程序呢? 任务管理器》性能》资源监视器,搜索句柄即可 win11为例 阅读全文
posted @ 2023-05-29 10:18 博客YS 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 一、异步 异步是目的,线程是手段,其实微软一直在线程上做优化,简单聊下发展史, Thread,是微软.Net1.0推出(只能利用cpu的单核心); ThreadPool 是微软.Net2.0推出(性能比Thread高,在Thread基础上做了线程池(全局队列)优化); Task是微软.Net4.0推 阅读全文
posted @ 2023-05-26 11:39 博客YS 阅读(48) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 25 下一页