自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 读取Excel中的数据,集成到DataTable中

private void GetTestData() { string fileName = @"C:\Users\Administrator\Desktop\费用.xlsx"; OleDbConnection Conn = null; DataTable dt = null; string connString = string.Empty; OleDbDataAdapt...

2021-07-29 10:41:51 207

转载 C#全局错误捕捉

  protected void Application_Error(Object sender, EventArgs e)         {             Exception lastError = Server.GetLastError();             if (lastError != null)             {                 //异常信...

2018-10-27 11:58:56 630

原创 不跳转下载文件

function downloadFile(url) {     try {         var elemIF = document.createElement("iframe");         elemIF.src = url;         elemIF.style.display = "none";         document.body.appendChild(elemIF)...

2018-10-27 11:58:17 2260 1

转载 Rsa 对称加密类

using System; using System.IO; using System.Security.Cryptography; using System.Text; namespace Gd.Security {     /// <summary>     /// Rsa 对称加密类     /// </summary>     // Token: 0x020000...

2018-10-27 11:57:26 509

转载 读取excel到datatable中

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Data; using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel;...

2018-10-27 11:56:58 684

原创 动态调用WebService帮助类

using System; using System.Web; using System.Net; using System.IO; using System.CodeDom; using Microsoft.CSharp; using System.Reflection; using System.CodeDom.Compiler; using System.Collections.Generi...

2018-10-27 11:56:18 263

原创 使用NOPI操作Word模板生成新对象

using System; using System.Collections.Generic; using System.Linq; using System.Text; using NPOI.XWPF.UserModel; using System.IO; using System.Reflection; using Newtonsoft.Json; using System.Text.Regu...

2018-09-07 17:52:11 791

原创 预览大图

<div class="img-showdiv" style="visibility:hidden;position:absolute;-border:solid 1px #000;background-color:white;border:solid 1px #ccd4e8;">     <img src="" style="max-height:200px;" /> &

2018-08-09 17:08:25 795

原创 图片上传帮助类

 /// <summary>     /// UploadLocalImages 的摘要说明     /// </summary>     public class UploadLocalImages : IHttpHandler     {         public static string baseFileUrl = "~/UploadImg/Temp/";  ...

2018-08-09 11:06:12 150

原创 获取excel内容

 /// <summary>         /// 获取excel文件中的敏感词 并导入到数据库         /// </summary>         /// <param name="filePath">excel完整路径</param>         /// <param name="curUserInfo">当前

2018-08-09 09:55:58 140

原创 js获取日期差(精确到年月)

 function getCRNX(crnx) {             var nowstr = '@DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")';             //选出最大时间             var max = new Date(nowstr).format('yyyy/MM/dd hh:mm:ss');          ...

2018-07-30 11:50:34 823

原创 解决bootstrop中.woff报404问题

在web.config中的<system.webServer>中添加 <staticContent>      <remove fileExtension=".woff"/>      <mimeMap fileExtension=".woff" mimeType="application/font-woff" />    &lt

2018-07-03 14:32:55 1103

原创 脏字匹配(脏字字典以|分隔)

 public class DirtyWordHandler    {        private HashSet<string> hash = new HashSet<string>();        private byte[] fastCheck = new byte[char.MaxValue];        private BitArray charChec...

2018-05-29 17:48:40 1885

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除