2022年2月9日

摘要: <?xml version="1.0" encoding="utf-8" ?> <log4net> <!-- Define some output appenders --> <!--Type 表示用那种类型记录日志--> <appender name="rollingAppender" type= 阅读全文
posted @ 2022-02-09 16:49 梧桐枫叶 阅读(386) 评论(0) 推荐(0) 编辑

2018年12月23日

摘要: 引言 委托 和 事件在 .Net Framework中的应用非常广泛,然而,较好地理解委托和事件对很多接触C#时间不长的人来说并不容易。它们就像是一道槛儿,过了这个槛的人,觉得真是太容易了,而没有过去的人每次见到委托和事件就觉得心里别(biè)得慌,混身不自在。本文中,我将通过两个范例由浅入深地讲述 阅读全文
posted @ 2018-12-23 21:24 梧桐枫叶 阅读(97) 评论(0) 推荐(0) 编辑

2018年6月27日

摘要: using Newtonsoft.Json;using Newtonsoft.Json.Converters;using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Ne 阅读全文
posted @ 2018-06-27 16:47 梧桐枫叶 阅读(327) 评论(0) 推荐(0) 编辑

2018年5月8日

摘要: 以下函数不能解决中文上传问题,如果上传的数据里有中文,写入的时候就会出错: public static string Post(string url, string requestString, string contentType, Encoding encoding) { var request 阅读全文
posted @ 2018-05-08 19:39 梧桐枫叶 阅读(5707) 评论(0) 推荐(0) 编辑

2014年8月20日

摘要: int cx; int cy; private void btnClose_Click(object sender, EventArgs e) { this.Close(); } private void btnClose_MouseLeave(object sender, EventAr... 阅读全文
posted @ 2014-08-20 14:13 梧桐枫叶 阅读(428) 评论(0) 推荐(0) 编辑

2014年8月5日

摘要: 第一种:使用DataSource数据源中自带的编辑删除方法,这种不常用,在这里就不加说明了。 第二种:使用GridView的三种事件:GridView1_RowEditing(编辑)、GridView1_RowUpdating(更新)、GridView1_RowCancelingEdit(取消编辑)... 阅读全文
posted @ 2014-08-05 16:33 梧桐枫叶 阅读(262) 评论(0) 推荐(0) 编辑

导航