摘要: 基本概念 1.日志级别:Trace<Debug<Information<Warning<Error<Critical 2.日志提供者(LoggingProvider):把日志输出到哪里。控制台、文件、数据库等。 3.。NET等日志非常灵活,对于业务代码只要注入日志对象记录日志即可,具体哪些日志输出到 阅读全文
posted @ 2021-07-16 21:01 阳光下丶 阅读(498) 评论(0) 推荐(0) 编辑
摘要: GOdeclare @sql varchar(8000)while (select count(*) from sysobjects where type='U')>0beginSELECT @sql='drop table ' + nameFROM sysobjectsWHERE (type = 阅读全文
posted @ 2020-06-22 15:28 阳光下丶 阅读(177) 评论(0) 推荐(0) 编辑
摘要: cmd 命令执行: osql -E -i D:\脚本文件.sql执行脚本和保存日志 osql -E -i D:\脚本文件.sql -o D:\执行日志文件.txt sqlcmd -S SERVERNAME -U USERNAME -P PASSWORD -i filename.sql 参数命名:-S 阅读全文
posted @ 2020-06-19 17:14 阳光下丶 阅读(577) 评论(0) 推荐(0) 编辑
摘要: <system.web> <httpRuntime requestValidationMode="2.0" maxRequestLength="3072" ></httpRuntime> <!--单位:KB 3072=3MB 默认是4MB,最大支持2GB--> </system.web> <syst 阅读全文
posted @ 2020-02-26 10:58 阳光下丶 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 图片压缩https://tinypng.com/http://zhitu.isux.us/https://squoosh.app/ Icon: https://www.iconfont.cn/ window服务器禁用默认的ssl2.0和ssl3.0只启用启用tls1.2保证安全 https://bl 阅读全文
posted @ 2020-01-09 14:01 阳光下丶 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1.打开新窗口 function postNew(url, params) { var form = $("<form method='post'></form>"); var input; form.attr({ "action": url }); if (params != "") { $.ea 阅读全文
posted @ 2019-11-28 11:02 阳光下丶 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: context.Response.AddHeader("Access-Control-Allow-Origin", "*"); 阅读全文
posted @ 2019-11-26 14:56 阳光下丶 阅读(71) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 将DataTable 转换成JSon字符串 /// </summary> /// <param name="table"></param> /// <returns></returns> public static string DataTableToJsonWi 阅读全文
posted @ 2019-11-06 11:53 阳光下丶 阅读(442) 评论(0) 推荐(0) 编辑
摘要: http改为https,在链接加入&s=1 https网站使用: <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=您的密钥&s=1"> http使用: <script type="text/java 阅读全文
posted @ 2019-11-06 11:50 阳光下丶 阅读(453) 评论(0) 推荐(0) 编辑
摘要: string fileext = CSA_BLL.Common.Utils.GetFileExt(filePath); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(filePath); request.Method = "GE 阅读全文
posted @ 2019-11-06 11:40 阳光下丶 阅读(425) 评论(0) 推荐(0) 编辑