随笔分类 -  C#

摘要:<form action="/Employees/BatchUpload" class="dropzone" enctype="multipart/form-data" id="my-dropzone" name="photoFile" method="post" style="margin-top 阅读全文
posted @ 2020-07-15 15:27 Hero-韦先生 阅读(354) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using ICSharpCode.SharpZipLib.Checksums; using ICSharpCode.SharpZipLib.Zip; namespace 阅读全文
posted @ 2020-07-13 17:12 Hero-韦先生 阅读(327) 评论(0) 推荐(0)
摘要:public static string ReplaceSQLChar(string str) { if (str == String.Empty) return String.Empty; str = str.Replace("'", ""); str = str.Replace(";", "") 阅读全文
posted @ 2020-07-07 11:03 Hero-韦先生 阅读(529) 评论(0) 推荐(0)
摘要:<form action="/Employees/Import" method="post" enctype="multipart/form-data"> <input type="file" name="file" id="file" /> <input type="submit" name="n 阅读全文
posted @ 2020-06-30 14:37 Hero-韦先生 阅读(1170) 评论(0) 推荐(0)
摘要:<input type="submit" class="btn btn-info" onclick="DelAll()" value="批量删除" /> <table class="table table-striped" id="table"> <tr> <td><input id="cb_sel 阅读全文
posted @ 2020-06-29 14:25 Hero-韦先生 阅读(1542) 评论(0) 推荐(0)
摘要:/// <summary> /// Response分块下载 /// </summary> /// <param name="fileName">客户端保存的文件名</param> /// <param name="filePath">客户端保存的文件路径(包括文件名)</param> /// <r 阅读全文
posted @ 2020-06-29 14:06 Hero-韦先生 阅读(398) 评论(0) 推荐(0)
摘要:三次握手 所谓的“三次握手”:为了对每次发送的数据量进行跟踪与协商,确保数据段的发送和接收同步, 根据所接收到的数据量而确认数据发送、接收完毕后何时撤消联系,并建立虚连接。 为了提供可靠的传送,TCP在发送新的数据之前,以特定的顺序将数据包的序号,并需要这些包传送给目标机之后的确认消息。 TCP总是 阅读全文
posted @ 2020-06-20 21:10 Hero-韦先生 阅读(329) 评论(0) 推荐(0)
摘要:/// <summary> /// DataTable导出Excel(纵向导出) /// </summary> /// <param name="dataTable">数据源</param> /// <param name="filePath">保存的路径</param> /// <param na 阅读全文
posted @ 2020-06-19 09:56 Hero-韦先生 阅读(944) 评论(0) 推荐(0)