摘要: 1 //根据域名解析出IP 2 IPHostEntry hostinfo = Dns.GetHostByName("baidu.com"); 3 IPAddress[] aryIP = hostinfo.AddressList; 4 IPAddress address = aryIP[0]; 阅读全文
posted @ 2016-06-06 10:09 易雪寒 阅读(3981) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// RSA私钥加密 3 /// 4 /// 待加密的文本 5 /// 私钥 6 /// 7 private string EncryptDataBytes(string strValue,string priKey) 8 {... 阅读全文
posted @ 2016-06-04 18:46 易雪寒 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// RSA公钥加密 3 /// 4 /// 待加密文本 5 /// RSA公钥 6 /// 7 public static string RSAEncrypt(string content, string publickey) 8 ... 阅读全文
posted @ 2016-06-04 18:39 易雪寒 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// 时间戳转换成标准时间 3 /// 4 /// 时间戳 5 /// 6 private DateTime ConvertToTime(string timeStamp) 7 { 8 DateTime time = DateTime.Now; 9 if (str... 阅读全文
posted @ 2016-06-04 18:00 易雪寒 阅读(2741) 评论(0) 推荐(0) 编辑
摘要: sql server查看有哪些存储过程和视图的方法 select * from sys.sysobjects where type='p' //存储过程 select * from sys.sysobjects where type='v' //视图 sp_helptext procName //查 阅读全文
posted @ 2016-06-04 17:54 易雪寒 阅读(623) 评论(0) 推荐(0) 编辑