摘要: public string HttpPost(string Url, string postDataStr) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url); request.Method = "POST"; request... 阅读全文
posted @ 2016-03-25 15:29 鞍山老菜鸟 阅读(264) 评论(0) 推荐(0)
摘要: 调用 阅读全文
posted @ 2016-03-25 15:26 鞍山老菜鸟 阅读(382) 评论(0) 推荐(0)
摘要: Model.Model_Session s = new Model.Model_Session(); s.glsort = 101; s.glsort2 = 102; var typea = s.GetType(); foreach (var item in typea.GetProperties( 阅读全文
posted @ 2016-03-25 15:19 鞍山老菜鸟 阅读(122) 评论(0) 推荐(0)
摘要: 项目设定在framework4.0以上 并且项目引用 Miscorsoft.CSharp 阅读全文
posted @ 2016-03-25 11:13 鞍山老菜鸟 阅读(867) 评论(0) 推荐(0)
摘要: /// /// 加密 /// /// /// 密钥必须是8位 /// public static string MD5Encrypt(string pToEncrypt, string sKey) { DESCryptoServiceProvider d... 阅读全文
posted @ 2016-03-25 09:28 鞍山老菜鸟 阅读(681) 评论(0) 推荐(0)
摘要: /// /// 加密 /// /// 要加密的字符串,即明文 /// 公共密钥 /// 是否使用MD5生成机密秘钥 /// 加密后的字符串,即密文 public static string Encrypt(string toEncrypt, string key, bool use... 阅读全文
posted @ 2016-03-25 09:25 鞍山老菜鸟 阅读(2072) 评论(0) 推荐(0)