上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 60 下一页
摘要: private static string emailAccount = WebConfigurationManager.AppSettings["emailAccount"]; private static string emailPwd = Web... 阅读全文
posted @ 2017-01-09 14:45 正怒月神 阅读(176) 评论(0) 推荐(0)
摘要: public ActionResult CreateExcel(EL_ExhibitList entity) { EL_ExhibitListBLL exl = new EL_ExhibitListBLL(); ... 阅读全文
posted @ 2017-01-06 16:00 正怒月神 阅读(105) 评论(0) 推荐(0)
摘要: 直接上代码3种情况:第一种,由于form已经可以支持多个了。所以我们分成2个form来提交,submit会根据自己所在的form来提交当前表单的内容@using (Html.BeginForm("Index", "Home")){}@using (Html.Begin... 阅读全文
posted @ 2016-12-28 11:12 正怒月神 阅读(180) 评论(0) 推荐(0)
摘要: 转载:http://www.cnblogs.com/cnblogsfans/p/5086292.html 不得不说,这次的语法糖,有挺多还是很实用的。 一、字符串插值 (String Interpolation)C# 6之前我们拼接字符串时需要这样 var Name ... 阅读全文
posted @ 2016-12-19 14:33 正怒月神 阅读(147) 评论(0) 推荐(0)
摘要: 之前在微信上用到富文本编辑器,选用了ueditor之后又在项目中使用到了,因此打算写下来记录一下。 1 首先去下载ueditor2 我的是 MVC项目,贴一下:粘贴到Content下 3 然后在 BundleConfig中配置 css以及 js的虚拟路径 //E... 阅读全文
posted @ 2016-12-14 15:59 正怒月神 阅读(159) 评论(0) 推荐(0)
摘要: 1 MVC中显示 内存流 中的图片。(不是图片文件)创建一个Index用来显示Action:public ActionResult Index() { return View(); }cshtml:@{ View... 阅读全文
posted @ 2016-12-08 15:20 正怒月神 阅读(784) 评论(0) 推荐(0)
摘要: webapi的controller和action的控制。 使用场景:webapi接收到加密数据以及签名。验证签名是否有效。我们不能一个个action增加判断。 所以添加Filter是比较明智的方法。 首先 签名过滤器 异常过滤器 然后是启用方式,有2种 1 全局控制 在webapiConfig中添加 阅读全文
posted @ 2016-12-08 10:18 正怒月神 阅读(237) 评论(0) 推荐(0)
摘要: 参考了:http://blog.csdn.net/smartsmile2012/article/details/17119755这里写一下二维码和条形码的帮助类。CodeHelper首先 通过nuget下载PS: 这里是ZXing,不是google的那个using ... 阅读全文
posted @ 2016-12-07 14:17 正怒月神 阅读(313) 评论(0) 推荐(0)
摘要: 持续更新:一 属性重命名数据库:UserNameModel: [Column("UserName")]public string UserName222二, 某表多个外键指向同一表的主键。数据库 ://主表public partial class MainTable... 阅读全文
posted @ 2016-12-01 16:09 正怒月神 阅读(565) 评论(0) 推荐(0)
摘要: 问题的原因:创建webapi controller时,习惯创建了mvc的controller,而非api controller。导致引用包有问题。这两天搞webapi开发的时候,遇见了405错误。我贴一下解决的方式:controller中添加如下引用。using Sy... 阅读全文
posted @ 2016-11-30 10:22 正怒月神 阅读(821) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 60 下一页