上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 如果项目在IIS发布后,出现System.ComponentModel.Win32Exception: 拒绝访问。 那么就试试下面的办法。 步骤如下: 应用程序池=》设置应用程序池默认设置 将标识:改为LocalSystem 即可。 阅读全文
posted @ 2018-05-18 09:55 鞍山老菜鸟 阅读(2943) 评论(0) 推荐(1)
摘要: Web.config 配置文件很重要,有些蒙圈,自己稍微整理了下。看起来就简单些。 步骤一: NuGet 给项目安装 Entity Framework。 步骤二: NuGet给项目安装 JetEntityFrameworkProvider 步骤三: 添加数据库位置Web.config 步骤四: We 阅读全文
posted @ 2018-03-14 14:03 鞍山老菜鸟 阅读(2134) 评论(0) 推荐(0)
摘要: 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)
摘要: 仅供参考: 阅读全文
posted @ 2018-02-11 15:08 鞍山老菜鸟 阅读(331) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: /// <summary> /// NPOI帮助类 /// </summary> public class NPOIHelper { public static MemoryStream Export(DataTable dtSource, string strHeaderText, string 阅读全文
posted @ 2017-09-04 17:30 鞍山老菜鸟 阅读(215) 评论(0) 推荐(0)
摘要: /// /// Excel转换DataTable /// /// 文件的绝对路径 /// DataTable public static DataTable ExcelInput(string FilePath) { //第一行一般为标题行。 Da... 阅读全文
posted @ 2017-09-04 17:28 鞍山老菜鸟 阅读(1023) 评论(0) 推荐(0)
摘要: var model_JsonSerializerSettings = new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore, // DateFormatString = "yy... 阅读全文
posted @ 2017-07-06 10:11 鞍山老菜鸟 阅读(1543) 评论(0) 推荐(0)
摘要: 转: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 下一页