摘要: ------------------------------------- MyEclipse 快捷键1(CTRL) -------------------------------------Ctrl+1 快速修复Ctrl+D: 删除当前行Ctrl+Q 定位到最后编辑的地方Ctrl+L 定位在某行C... 阅读全文
posted @ 2014-04-29 10:38 liming2011007 阅读(80) 评论(0) 推荐(0)
摘要: 方式1:using System.Data.SqlClient;string strcon,strsql;private void button1_Click(object sender, EventArgs e){strcon="Server=.;Database=asdqwe;User id='sa';password='123456'";strsql="select * from asdqwe";SqlConnection mycon=new SqlConnection(strcon);SqlDataAdapter 阅读全文
posted @ 2014-03-22 12:35 liming2011007 阅读(151) 评论(0) 推荐(0)
摘要: //MD5public static string MD5(string str) { byte[] bytes=Encoding.Default.GetBytes(str); bytes=MD5CryptoServiceProvider.computeHash(bytes); string text=""; for(int i=0;i<bytes.Length;i++) { text=text+bytes[i].ToString("x").PadLeft(2,'0'); } return text;}SHA1public stri 阅读全文
posted @ 2014-03-17 18:55 liming2011007 阅读(139) 评论(0) 推荐(0)