2019年7月15日

App_Code下类无法引用问题

摘要: App_Code 下创建的.cs文件仅仅是“内容”不是代码。设置文件为“编译”就可正常引用。 阅读全文

posted @ 2019-07-15 16:43 power_yu 阅读(564) 评论(0) 推荐(0)

2019年1月26日

微信第三方登录

摘要: 1 string returnUrl = string.Empty; 2 string appId = ConfigurationManager.AppSettings["wx_AppKey"]; 3 string appSecret = ConfigurationManager.AppSettings["wx_AppSecret"]; 4... 阅读全文

posted @ 2019-01-26 17:36 power_yu 阅读(630) 评论(0) 推荐(0)

2019年1月17日

移动端上传文件

摘要: 限制只能选择图片 限制只能选择视频 限制只能选择音频 直接打开摄像头拍照 直接打开摄像头录像 阅读全文

posted @ 2019-01-17 11:34 power_yu 阅读(734) 评论(0) 推荐(0)

2019年1月14日

MSSQL2008 R2 数据库展开报错:值不能为空 参数名:viewInfo

摘要: 打开数据库时报错,提示应用程序组件中发生了无法处理的异常。如果单击“继续”,应用程序将忽略此错误并尝试继续。 针对此类问题的解决办法是:将路径C:\Documentsand Settings\Administrator\Application Data\microsoft\Microsoft SQL 阅读全文

posted @ 2019-01-14 11:39 power_yu 阅读(5051) 评论(0) 推荐(0)

2018年11月5日

w3wp.exe进程占用内存过高解决方法

摘要: 解决CPU占用过多: 1、在IIS中对每个网站进行单独的应用程序池配置。即互相之间不影响。 2、设置应用程序池的CPU监视,不超过25%(服务器为4CPU),每分钟刷新,超过限制时关闭。 根据w3wp取得是哪一个应用程序池: 1、在任务管理器中增加显示pid字段。就可以看到占用内存或者cpu最高的进 阅读全文

posted @ 2018-11-05 11:40 power_yu 阅读(1136) 评论(0) 推荐(0)

2018年10月26日

统计解决方案代码行总数

摘要: ctrl + shift + F 查找选项选 正则表达式 组合键:ctrl + shift + F 出现查找和替换选项卡,如图所示 输入b*[^:b#/]+.*$ 查找选项选 :正则表达式 统计出整个工程的行数 如图所示: 总代码行数结果显示: 阅读全文

posted @ 2018-10-26 11:53 power_yu 阅读(252) 评论(0) 推荐(0)

2018年10月24日

导出Excel

摘要: public FileResult Export(string queryJson) { string filename = DateTime.Now.ToString("yyyyMMdd") + ".xls"; byte[] excel = new EME.Code.Excel.NPOIExcel().... 阅读全文

posted @ 2018-10-24 18:12 power_yu 阅读(122) 评论(0) 推荐(0)

2018年10月19日

sql 按年月日统计

摘要: 1、每年select year(ordertime) 年,sum(Total) 销售合计from 订单表group by year(ordertime)2、每月select year(ordertime) 年,month(ordertime) 月,sum(Total) 销售合计from 订单表gro 阅读全文

posted @ 2018-10-19 19:07 power_yu 阅读(1127) 评论(0) 推荐(0)

2018年10月10日

mssql2008 r2 修改默认端口

摘要: 1、点击“开始”-“所有程序”-“Microsoft SQL Server 2008R2”-“配置工具”-“SQL Server配置管理器” 2、在打开的“SQL Server配置管理器”窗口中,在左边的树形窗口中选中“SQL Server网络配置”-“MSSQLSERVER的协议”,点中右边TCP 阅读全文

posted @ 2018-10-10 10:25 power_yu 阅读(8678) 评论(0) 推荐(1)

2018年9月19日

在原有数据库中使用 CodeFirst

摘要: 一、为当前实体模型启用数据迁移 1、Enable-Migrations -ContextTypeName EME.DBHelper.StoreContext(数据访问上下文) 2、 Add-Migration Initial (自定义文件名) -IgnoreChanges (参数:以现状为准,第一次 阅读全文

posted @ 2018-09-19 15:53 power_yu 阅读(230) 评论(0) 推荐(0)

导航

< 2025年7月 >
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9
点击右上角即可分享
微信分享提示