随笔分类 -  .Net-ASP.NET

摘要:以下是ashx一般处理程序的示例,且cas登录单独放到了一个按钮中: 1、登录按钮(js) - 实现2.重定向到Service console.log("cos登录"); var originStr = window.location.origin; window.location.href = " 阅读全文
posted @ 2024-04-23 10:33 ꧁执笔小白꧂ 阅读(111) 评论(0) 推荐(0) 编辑
摘要:后补 阅读全文
posted @ 2024-01-22 09:47 ꧁执笔小白꧂ 阅读(52) 评论(0) 推荐(0) 编辑
摘要:一、理解 1、在常见的简单框架中 将Server层注入和常见的new相比,只是减少了new的次数,没感觉出能降低和Server层的代码耦合性,在降低代码耦合性方面意义不大;有意义得地方是Singleton单例模式下的注入和单例意义相同,能降低了GC的压力,提升软件的性能。 2、在DDD等复杂框架中 阅读全文
posted @ 2023-06-27 16:01 ꧁执笔小白꧂ 阅读(57) 评论(0) 推荐(0) 编辑
摘要:一、概念 1、MemoryCache 是 C#/.NET 应用程序中自带的缓存库。 2、Memcached 是一个分布式缓存服务器,在不同语言的应用程序中都可以使用。 二、异同 1、都是用于内存缓存的工具。 2、分布式部署支持 MemoryCache 对象是在单台服务器上运行的,并且仅限于该服务器的 阅读全文
posted @ 2023-06-26 11:02 ꧁执笔小白꧂ 阅读(351) 评论(0) 推荐(0) 编辑
摘要:private static Logger processLogger; // ① LnProcessDBLog标签 LogManager.GetLogger("InterFaceDBLog");②使用前先保证不为null,否则InitNlog(); // 修改Nlog.config配置的文件 pr 阅读全文
posted @ 2023-04-18 16:10 ꧁执笔小白꧂ 阅读(210) 评论(0) 推荐(0) 编辑
摘要:详细错误如下: 处理对策: 这次出现的原因是因为ASP.NET运行的端口被占用,改换端口即可。 其他可能的对策: ①文件权限不足,把程序文件放到c盘以外的盘中并给程序执行文件合理的权限。 阅读全文
posted @ 2022-01-27 20:03 ꧁执笔小白꧂ 阅读(1531) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-01-27 10:11 ꧁执笔小白꧂ 阅读(126) 评论(0) 推荐(0) 编辑
摘要:一、什么是跨域 1、跨域的场景 跨域是指跨域名的访问,以下情况都属于跨域: 跨域原因说明 示例 协议不同 http://与https:// 域名不同 www.yunyi.com 与 blog.yunyi.com 端口不同 www.yunyi.com:8080 与 www.yunyi.com:8081 阅读全文
posted @ 2022-01-25 21:41 ꧁执笔小白꧂ 阅读(99) 评论(0) 推荐(0) 编辑
摘要:.ashx 文件用于写web handler的,ashx+html=aspx,继承于IhttpHander; 详细操作见https://blog.csdn.net/whatday/article/details/54893889 阅读全文
posted @ 2022-01-20 16:29 ꧁执笔小白꧂ 阅读(49) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Configuration; namespace Uril { /// <summary> /// web.config操作类 /// Copyright (C) Maticsoft /// </summary> public sealed cl 阅读全文
posted @ 2022-01-20 14:24 ꧁执笔小白꧂ 阅读(76) 评论(0) 推荐(0) 编辑
摘要:已实测 阅读全文
posted @ 2021-10-29 16:37 ꧁执笔小白꧂ 阅读(55) 评论(0) 推荐(0) 编辑
摘要:1.HttpWebRequest: .NET.Framework的请求/响应模型的抽象基类,用于访问Internet数据。 HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(Url); 提供的属性有: 标头 设置方法 Acce 阅读全文
posted @ 2021-10-21 23:08 ꧁执笔小白꧂ 阅读(63) 评论(0) 推荐(0) 编辑
摘要:一,两种类型的防护方式: 1.REST(表述性状态传递) API 安全防护: REST API 使用 HTTP 并且支持传输层安全性(TLS)加密(HTTPS)。TLS 是确保互联网连接私密性的一个标准,可以检查两个系统(服务器与服务器或服务器与客户端)之间发送的数据是否受到加密且未被篡改。 2.S 阅读全文
posted @ 2021-10-20 13:00 ꧁执笔小白꧂ 阅读(181) 评论(0) 推荐(0) 编辑
摘要:1.cd /.../.../nginx/conf/(例如/usr/local/nginx/conf/)文件夹,新建*.conf(如net12.conf) server { listen 888; server_name localhost; root /root/FirstApi/; index i 阅读全文
posted @ 2021-10-19 13:40 ꧁执笔小白꧂ 阅读(401) 评论(0) 推荐(0) 编辑
摘要:一,前言: 由于DateTime在NET中具有初始值,不为Null,所以验证下常用环境的初始值。 二,方法思路: DateTime dt或者DateTime dt=New DateTime();dt.ToString(); 这里只验证: DateTime dt; dt.ToString(); 三,结 阅读全文
posted @ 2021-09-17 10:07 ꧁执笔小白꧂ 阅读(188) 评论(0) 推荐(0) 编辑
摘要:报错: An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator please click 阅读全文
posted @ 2021-09-13 23:52 ꧁执笔小白꧂ 阅读(215) 评论(0) 推荐(0) 编辑
摘要:using Dapper; using System.Collections.Generic; using System.Data; using System.Text; namespace DBDapper { /// <summary> /// 分页帮助类 /// </summary> publ 阅读全文
posted @ 2021-07-09 17:10 ꧁执笔小白꧂ 阅读(334) 评论(0) 推荐(0) 编辑
摘要:1.遇到的问题: Ubuntu18部署ASP.NET程序遇到验证码不显示,项目引用了System.Drawing库。 2.可能的原因: 是由于Ubuntu缺少GUI库,需要安装libgdiplus包。 3.解决过程: 安装libgdiplus包,见Ubuntu Server(Ubuntu 14.04 阅读全文
posted @ 2021-04-19 14:56 ꧁执笔小白꧂ 阅读(178) 评论(0) 推荐(0) 编辑
摘要:1、资料地址:https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-2.2.110-linux-x64-binaries 2、下面是一个例子(core-sdk2.2.110): ①下载: https://download.visuals 阅读全文
posted @ 2021-04-16 13:31 ꧁执笔小白꧂ 阅读(367) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示