上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 75 下一页

2018年11月30日

C# ToShortDateString() ToString() 设置日期格式的区别

摘要: 在C#中,ToShortDateString()是用于显示短日期格式的方法,如果使用下面的语句: Label1.Text = DateTime.Now.ToShortDateString(); 那么,在Label1中会显示什么样的短日期格式呢? 答案是:不确定。 可能是:2013-07-26 也可能 阅读全文

posted @ 2018-11-30 17:58 itjeff 阅读(5493) 评论(0) 推荐(0)

2018年11月28日

读取Excel二进制写入DB,并从DB中读取生成Excel文件

摘要: namespace SendMailSMSService { class Program { static void Main(string[] args) { var connString = SqlDataHelper.GetConnectionString(); //读取Excle文件并写入表中... 阅读全文

posted @ 2018-11-28 13:33 itjeff 阅读(828) 评论(0) 推荐(0)

2018年11月26日

AutoMapper,对象映射的简单使用

摘要: using AutoMapper; using AutoMapper.Configuration; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutoMapperTest { c... 阅读全文

posted @ 2018-11-26 13:13 itjeff 阅读(333) 评论(0) 推荐(0)

2018年11月12日

多语言设置,获取对应的资源文件配置

摘要: class Program { static void Main(string[] args) { var isContinue = true; while (isContinue) { Console.WriteLine("请输入Language Co... 阅读全文

posted @ 2018-11-12 15:05 itjeff 阅读(176) 评论(0) 推荐(0)

2018年10月29日

AutoMapper,对象映射的简单使用

摘要: using AutoMapper; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyMapperTest { class Program { static ... 阅读全文

posted @ 2018-10-29 10:51 itjeff 阅读(304) 评论(0) 推荐(0)

2018年9月7日

Angular 4.0从入门到实战

摘要: AngularJS 优点 模板功能强大丰富,并且是声明式的,自带了丰富的Angular指令; 是一个比较完善的前端MVC框架,包含模板,数据双向绑定,路由,模块化,服务,过滤器,依赖注入等所有功能; 自定义Directive,比jQuery插件还灵活,但是需要深入了解Directive的一些特性,简 阅读全文

posted @ 2018-09-07 10:39 itjeff 阅读(964) 评论(0) 推荐(0)

2018年9月4日

IE报错:The given path's format is not supported

摘要: 在使用FileUpload控件进行上传EXCEL文件时,本地调试上传无问题,但是发布之后报地址无效错误 一、出现这个错误的主要原因是,在本地上传图片的时候HttpPostedFileBase对象里面保存的FileName仅仅是文件的名称而已 另外,这个也是浏览器的兼容问题,比如 FileUpload 阅读全文

posted @ 2018-09-04 16:44 itjeff 阅读(704) 评论(0) 推荐(0)

2018年8月24日

原生js中slice()方法和splice()区别

摘要: slice()方法和splice()方法都是原生js中对数组操作的方法。 slice(),返回一个新的数组,该方法可从已有的数组中返回选定的元素。例如:arrObject(start,end),start是必选的,包含该位置的元素。规定从何处开始选取,如果是负数,则是从数组元素尾部选取,也就是说-1 阅读全文

posted @ 2018-08-24 16:14 itjeff 阅读(535) 评论(0) 推荐(0)

2018年7月26日

使用jquery插件ajaxfileupload一次上传多个文件,示例

摘要: @{ ViewBag.Title = "Index"; Layout = ""; } @**@ @**@ public ActionResult Upload() { NameValueCollection nvc = System.Web.Ht... 阅读全文

posted @ 2018-07-26 15:35 itjeff 阅读(7595) 评论(0) 推荐(0)

2018年7月24日

C#路径中获取文件全路径、目录、扩展名、文件名称

摘要: 常用函数 需要引用System.IO 直接可以调用Path的静态方法 程序在桌面运行 Path类介绍 阅读全文

posted @ 2018-07-24 13:25 itjeff 阅读(1558) 评论(0) 推荐(0)

上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 75 下一页

导航