摘要: 简繁体转换添加Microsoft.VisualBasic.dll引用 //简转繁 string str= Microsoft.VisualBasic.Strings.StrConv("民生银行", Microsoft.VisualBasic.VbStrConv.TraditionalChinese, 阅读全文
posted @ 2017-10-11 15:51 会飞的小鲸鱼 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 第一种方式 下载图片,文件 WebClient my = new WebClient(); string url = "http://localhost:1015/resource/loading.gif"; string url2 = HttpContext.Current.Request.Map 阅读全文
posted @ 2017-10-11 11:59 会飞的小鲸鱼 阅读(625) 评论(0) 推荐(0) 编辑
摘要: .CSHttpContext.Current.Server.MapPath();//所在文件夹路径System.Web.HttpContext.Current.Request.PhysicalApplicationPat;//根路径 .aspxServer.MapPath(Request.Serve 阅读全文
posted @ 2017-10-11 11:55 会飞的小鲸鱼 阅读(4077) 评论(0) 推荐(0) 编辑
摘要: //Post请求 public static string Post(string url,string obj=null) { string param = (obj);//参数 byte[] bs = Encoding.Default.GetBytes(param); //创建一个新的HttpW 阅读全文
posted @ 2017-10-10 10:43 会飞的小鲸鱼 阅读(6237) 评论(0) 推荐(0) 编辑
摘要: //object 转json格式字符串 public static string ObjectToJsonString(this object obj) { return JsonConvert.SerializeObject(obj).Replace("\r\n", ""); } //json字符 阅读全文
posted @ 2017-10-09 12:22 会飞的小鲸鱼 阅读(3772) 评论(0) 推荐(0) 编辑