会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
鞍山老菜鸟
学无止境,跟年龄没关系。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
10
下一页
2018年5月18日
IIS 发布后出现 System.ComponentModel.Win32Exception: 拒绝访问解决办法
摘要: 如果项目在IIS发布后,出现System.ComponentModel.Win32Exception: 拒绝访问。 那么就试试下面的办法。 步骤如下: 应用程序池=》设置应用程序池默认设置 将标识:改为LocalSystem 即可。
阅读全文
posted @ 2018-05-18 09:55 鞍山老菜鸟
阅读(2943)
评论(0)
推荐(1)
2018年3月14日
C# Entity Framework框架 Code First 模式 连接 SQL\Access\SQLite (组合式)
摘要: Web.config 配置文件很重要,有些蒙圈,自己稍微整理了下。看起来就简单些。 步骤一: NuGet 给项目安装 Entity Framework。 步骤二: NuGet给项目安装 JetEntityFrameworkProvider 步骤三: 添加数据库位置Web.config 步骤四: We
阅读全文
posted @ 2018-03-14 14:03 鞍山老菜鸟
阅读(2134)
评论(0)
推荐(0)
2018年3月1日
NPOI 2.1.3.1版本读取excel 2003 2007版本文件
摘要: var ext = Path.GetExtension(filename).ToLower(); using (FileStream fs = File.OpenRead(filename)) { IWorkbook wk; if (ext.Contains("xl...
阅读全文
posted @ 2018-03-01 09:59 鞍山老菜鸟
阅读(259)
评论(0)
推荐(0)
2018年2月11日
C# 字符串函数计算
摘要: 仅供参考:
阅读全文
posted @ 2018-02-11 15:08 鞍山老菜鸟
阅读(331)
评论(0)
推荐(0)
2018年1月31日
自制常用工具类Common
摘要: 2025年3月8日 更新 using System; using System.IO; using System.Linq; using System.Net; using System.Security.Cryptography; using System.Text; using System.T
阅读全文
posted @ 2018-01-31 09:58 鞍山老菜鸟
阅读(461)
评论(0)
推荐(0)
2017年9月13日
防止ajax重复提交
摘要: var $Common = {request: { //请求 ajaxTimeFn: { time: null, url: null, data: null }, //防止重复提交 延迟 ajax: function (url, data, callback, asy...
阅读全文
posted @ 2017-09-13 18:30 鞍山老菜鸟
阅读(310)
评论(0)
推荐(0)
2017年9月4日
NPOI 导出
摘要: /// <summary> /// NPOI帮助类 /// </summary> public class NPOIHelper { public static MemoryStream Export(DataTable dtSource, string strHeaderText, string
阅读全文
posted @ 2017-09-04 17:30 鞍山老菜鸟
阅读(215)
评论(0)
推荐(0)
NPOI Excel 导入(不需要安装office的插件)
摘要: /// /// Excel转换DataTable /// /// 文件的绝对路径 /// DataTable public static DataTable ExcelInput(string FilePath) { //第一行一般为标题行。 Da...
阅读全文
posted @ 2017-09-04 17:28 鞍山老菜鸟
阅读(1023)
评论(0)
推荐(0)
2017年7月6日
Newtonsoft.Json.SerializeObject 转换参数
摘要: var model_JsonSerializerSettings = new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore, // DateFormatString = "yy...
阅读全文
posted @ 2017-07-06 10:11 鞍山老菜鸟
阅读(1543)
评论(0)
推荐(0)
2017年6月13日
EntityFramework Code First 特性
摘要: 转:http://blog.csdn.net/litt_j/article/details/42301869 KeyAttribute 设置主键。如果为int类型,将自动设置为自增长列。 系统默认以Id或类名+Id作为主键。StringLengthAttribute 可设置最大最小长度以及验证提示信
阅读全文
posted @ 2017-06-13 15:06 鞍山老菜鸟
阅读(183)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
10
下一页
公告