随笔分类 -  C#

摘要:什么是SFTP,公开键认证,SFTP可不是FTP协议的扩展,他是基于SSH的文件传输协议。 而当SFTP服务器登录有客户端的公开键时,客户端就可以用自己的私有键去跟服务器握手(handshake)已实现登录而不需要输入密码。而这种方式被称为公开键认证。 1 建SFTP服务器 首先当然是先建一个loc 阅读全文
posted @ 2021-09-16 10:53 dexin 阅读(1850) 评论(0) 推荐(0)
摘要:C# 导出Excel 1 //导出Excel 2 private void ExportExcel(string fileName, System.Data.DataTable myDGV, string title) 3 { 4 string saveFileName = ""; 5 System 阅读全文
posted @ 2021-09-13 10:43 dexin 阅读(649) 评论(0) 推荐(0)
摘要:1 public string Post(string Url, string jsonParas) 2 { 3 string strURL = Url; 4 //创建一个HTTP请求 5 HttpWebRequest request = (HttpWebRequest)WebRequest.Cre 阅读全文
posted @ 2021-09-13 10:38 dexin 阅读(6160) 评论(0) 推荐(0)
摘要:使用oledb读写excel出现“操作必须使用一个可更新的查询”的解决办法 转自:http://www.cnblogs.com/Richinger/archive/2008/09/28/1301170.html 前两天使用oledb连接excel的办法为单位某部门从一个excel的多个sheet中作 阅读全文
posted @ 2017-11-13 09:07 dexin 阅读(1055) 评论(0) 推荐(0)
摘要:整体代码如下: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using Syste 阅读全文
posted @ 2017-09-15 10:14 dexin 阅读(2084) 评论(0) 推荐(0)
摘要:一个DataGridView控件和4个Button using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Syste 阅读全文
posted @ 2017-09-15 10:10 dexin 阅读(5090) 评论(0) 推荐(1)