- 博客(6)
- 收藏
- 关注
转载 webapi 导入CSV文件
/// Html 代码 <button type="button" class="btn btn-primary" onclick="InportTicket()">导入</button> <input id="fileToUpload" type="file" name="upfile" style="display:none;"> ///...
2019-01-09 14:56:00 294
转载 webapi 导出CSV文件
/// JS脚本 window.open("../Ticket/ExportTicket"); /// Action 代码 [HttpGet] public ActionResult ExportTicket(TicketSearch search) { if (search != null) { ...
2019-01-09 14:48:00 550
转载 .net 压缩文件夹和解压
1、使用ICSharpCode.SharpZipLib 压缩还原可以实现功能,但在发布程序或者调试程序时报“不能加载这个dll库 2、使用System.IO.Compression.FileSystem.dll 也可以实现,不过这是点Net 4.5 版本才能使用 3、还是第三种比较好用:使用WindowsBase.dll 压缩和解压 使用命名空间using System.I...
2018-03-20 16:05:00 607
转载 c# 动态加载dll库
[DllImport("kernel32.dll")] private extern static IntPtr LoadLibrary(String path); [DllImport("kernel32.dll")] private extern static IntPtr GetProcAddress(IntPtr lib, Strin...
2018-01-05 15:46:00 312
转载 c# 读写ini文件
//在 Ini 文件中写数据 [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, string filePath); //读取 Ini 文件中的数据 ...
2018-01-03 16:23:00 93
转载 easyui tabs 一个窗口修改完成后刷新另一个窗口
在一个tab中添加或删除数据后,要改变主页(相当于链接的另一个tab)的内容: 1、在要刷新的窗口的初始化中添加 js 刷新方法,并保存到 window.top 中 window.top["Refresh_CloudHomePage_Content"] = function () { window.location.reload(); } 2、在主页添加刷新方法 ...
2017-11-28 13:37:00 494
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人