摘要: 引用: https://www.cnblogs.com/IT-Ramon/p/12156832.html Startup类: ConfigureServices方法添加: services.AddCors(op => { op.AddPolicy(“cors”, set => { set.SetIs 阅读全文
posted @ 2020-08-21 15:46 一切平常心 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 服务器版本:window server 2012 R2 Standard SDK 版本: dotnet-sdk-3.1.302-win-x64.exe 部署步骤: 1. 官网下载sdk( https://download.visualstudio.microsoft.com/download/pr/ 阅读全文
posted @ 2020-07-30 13:53 一切平常心 阅读(2155) 评论(1) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-01-03 14:34 一切平常心 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 关于验证网址的正则表达式C#://首先要引用System.Text.RegularExpressions;命名空间//然后要声明表达式的规则,这个规则适用于http,https,ftp等开头的网址形式 string s_reg = @"((http|https|ftp):(\/\/|\\\\)((\w)+[.]){1,}(net|com|cn|org|cc|tv|[0-9]{1,3})(((\/[\~]*|\\[\~]*)(\w)+)|[.](\w)+)*(((([?](\w)+){1}[=]*))*((\w)+){1}([\&](\w)+[\=](\w)+)*)*)&quo 阅读全文
posted @ 2012-12-05 11:22 一切平常心 阅读(1694) 评论(0) 推荐(0) 编辑
摘要: js脚本可以使用函数直接打开指定aspx网页并传值;例如: <script type="text/javascript"> var pic_path=document.getElementById("img_main_pic").src; document.getElementById("div_left").style.height=document.body.offsetHeight; document.getElementById("div_left").style.width=document. 阅读全文
posted @ 2012-10-11 10:25 一切平常心 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 最近做了一个小的模块,里面用到了sql的isnull ,case when then 其实就是处理数据库中的空值,当数据库的值为空的时候,让他显示为“无”,另外数据库的空值分为“null”和“''”1.当数据库中的数值有null的时候,用isnull比较方便:select distinct isnull(查询字段,'(无)') as 显示字段 from 查询表这样查询的结果如果字段有 null 则显示(无),如果不是 null显示查询的数据2.当数据库中的数值是 ''和null 的时候,用case when then 比较好:select dis 阅读全文
posted @ 2012-06-05 10:04 一切平常心 阅读(892) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-06-05 10:03 一切平常心 阅读(0) 评论(0) 推荐(0) 编辑