随笔分类 -  C#

Working with MSDTC
摘要:https://www.codeproject.com/Tips/1233146/Working-with-MSDTC 阅读全文
posted @ 2020-03-25 11:10 小柑 阅读(67) 评论(0) 推荐(0)
Call API relation to TLS 1.2
摘要://ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls; //.NET 4.5 //.NET 4.6 and above,no any code need add//ServicePointManager.SecurityP 阅读全文
posted @ 2019-11-26 17:19 小柑 阅读(190) 评论(0) 推荐(0)
Call API HTTP header Authorization: Basic
摘要:Client eil_userid = BaseCmConfig.GetCustomSettings("EILUserId"); eil_pw = BaseCmConfig.GetCustomSettings("EILPassword"); eil_pw = FMSEncrypt.Decrypt(e 阅读全文
posted @ 2019-11-26 17:05 小柑 阅读(391) 评论(0) 推荐(0)
DataTable to CSV and CSV to DataTable
摘要:一、将DataTable内容写入到CSV文件 /// /// 将DataTable中的数据保存成CSV文件 /// private void btnSaveCSV_Click(object sender, EventArgs e) { saveFileDialog1.Filter = "CSV文... 阅读全文
posted @ 2015-12-15 23:39 小柑 阅读(575) 评论(0) 推荐(0)
asp.net读取CSV-千分之想
摘要:用Excel导了两天数据,各种问题,折磨客户也折磨了自己,以前没发现的问题一下子都暴露出来了特意收集两篇Excel跟CSV读取相关的两篇文章asp.net读取excel文件,将excel文件先上传,在读取,最后删除。但有一个问题,那就是excel文件夹需要有读写的权限,IIS需要为asp.net用户... 阅读全文
posted @ 2015-12-15 23:32 小柑 阅读(704) 评论(0) 推荐(0)
Insert excel data into DB
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data... 阅读全文
posted @ 2015-09-06 19:56 小柑 阅读(348) 评论(0) 推荐(0)
DataGrid
摘要:Imports OASIS.BusinessLogicLayerPublic Class Rpt_MioTVOrders_TeamLeader_FTA1 Inherits System.Web.UI.Page .... Dim _dealer As String = "" Dim _nric As... 阅读全文
posted @ 2015-06-30 16:17 小柑 阅读(155) 评论(0) 推荐(0)