五味

导航

 

2018年10月17日

摘要: /// <summary> /// Base64加密 /// </summary> /// <param name="Message"></param> /// <returns></returns> public string Base64Code(string Message) { byte[] 阅读全文
posted @ 2018-10-17 20:29 五味 阅读(245) 评论(0) 推荐(0)
 

2018年10月16日

摘要: WebService出错 Maximum message size quota for incoming messages (65536) has been exceeded.已超过传入消息(65536)的最大消息大小配额 WebService应用中如果收到的信息非常大时出错。 1:Maximum 阅读全文
posted @ 2018-10-16 16:31 五味 阅读(135) 评论(0) 推荐(0)
 

2018年10月12日

摘要: ASCII码本身并不支持中国的汉字,那么我们需要将汉字转换成对应的16进制码,然后取出对应的ASCII16进制码组成汉字编码。 string str = "中华人民共和国"; //这里我们将采用2字节一个汉字的方法来取出汉字的16进制码 byte[] textbuf = Encoding.Default.GetBytes(str); string textAscii = string.E... 阅读全文
posted @ 2018-10-12 21:54 五味 阅读(2950) 评论(0) 推荐(1)
 

2018年10月11日

摘要: public class IPHelper { public static string GetVisitorsIPAddress() { string result = String.Empty; result = System.Web.HttpContext.Current.Request.Se 阅读全文
posted @ 2018-10-11 20:53 五味 阅读(155) 评论(0) 推荐(0)