上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: winform 配置文件是 App.config webform 的配置文件 是web.config 其实基本操作都一样 设置个配置文件 全局文件 访问者个配置文件 对这个配置文件增删改查 或者提前设置好配置文件 以后修改路径 、文件地址 、访问数据库、图片,不用从里面文件查找修改 ,只要改改配置文 阅读全文
posted @ 2017-11-02 20:48 天晴微笑 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 转载 首先写客服端,winform模拟一个post提交: 参数说明如下: address:接收文件的URL地址,如:http://localhost/UploadFile/Save.aspx fileNamePath:要上传的本地文件,如:D:\test.rar saveName:文件上传到服务器后 阅读全文
posted @ 2017-11-01 15:42 天晴微笑 阅读(7359) 评论(0) 推荐(0) 编辑
摘要: 一、C#处理简单json数据json数据: 复制代码代码如下: {"result":"0","res_info":"ok","queryorder_info":"info"} 我这里是以jsonmy1.txt文件的形式保存在d盘json文件夹下。 构造对象: 复制代码代码如下: public str 阅读全文
posted @ 2017-10-31 08:29 天晴微笑 阅读(440) 评论(0) 推荐(0) 编辑
摘要: public class FtpWeb { string ftpRemotePath; string ftpUserID; string ftpPassword; string ftpURI; string ftpServerIP; /// /// 连接FTP /// ///... 阅读全文
posted @ 2017-10-30 21:41 天晴微笑 阅读(264) 评论(0) 推荐(0) 编辑
摘要: //将image转化为二进制 public byte[] GetByteImage(Image img) { byte[] bt = null; if (!img.Equals(null)) { using (MemoryStream mostream = n... 阅读全文
posted @ 2017-10-30 21:06 天晴微笑 阅读(514) 评论(0) 推荐(0) 编辑
摘要: string username = this.textBox1.Text; string password = this.textBox2.Text; string AA = HttpUtility.UrlEncode(username, Encoding.UTF8); string bb = HttpUtili... 阅读全文
posted @ 2017-10-30 20:28 天晴微笑 阅读(199) 评论(0) 推荐(0) 编辑
摘要: //byte[] 转图片 public static Bitmap BytesToBitmap(byte[] Bytes) { MemoryStream stream = null; try { stream = new MemoryStream(B... 阅读全文
posted @ 2017-10-30 20:07 天晴微笑 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: 二、将图片保存到数据库中,并从数据库中读取: 阅读全文
posted @ 2017-10-25 20:37 天晴微笑 阅读(3943) 评论(0) 推荐(0) 编辑
摘要: 该篇文章 复制别人的文章 该篇文章 复制别人的文章 在.NET中处理视频是一件痛苦的事情,.NET并没有提供视频处理的类。于是咱们只能找一些第三方的类库或者自己实现,在项目时间比较赶的情况下,自己实现是不可能的了,而且说不定会留下很多坑。所以一般情况下,咱们都是找一些靠谱的第三方类库,毕竟别人确实实 阅读全文
posted @ 2017-10-25 17:14 天晴微笑 阅读(745) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Windows.Forms; using System.Drawing; using System.Collections; namespace ListViewSortFormNamespace { public class ListViewS 阅读全文
posted @ 2017-10-25 10:01 天晴微笑 阅读(1189) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页