09 2015 档案

摘要://编码HttpUtility.UrlEncode(str);HttpUtility.UrlEncode(str, 编码类型);//解码HttpUtility.UrlDecode(str)//编码Server.UrlEncode(str);//解码Server.UrlDecode(str);区别:H... 阅读全文
posted @ 2015-09-10 11:11 飞行在午夜 阅读(127) 评论(0) 推荐(0)
摘要:using System.Security.Cryptography; // /// MD5 32位加密 /// /// /// private string UserMd5(string str) ... 阅读全文
posted @ 2015-09-09 16:32 飞行在午夜 阅读(101) 评论(0) 推荐(0)
摘要://B/S模式连接数据库: string sql="Source=服务器Ip;database=数据库名称;UID=sa;Password=sasa;"; //C/S模式连接数据库: string sql="Data Source=服务器Ip;Initial Catalog=数据库名称;User I... 阅读全文
posted @ 2015-09-07 11:44 飞行在午夜 阅读(130) 评论(0) 推荐(0)
摘要:using System.Data;using System.Data.SqlClient;SqlConnection con = new SqlConnection();con.ConnectionString = "server=.;database=stu;uid=sa;pwd=sa";con... 阅读全文
posted @ 2015-09-07 11:09 飞行在午夜 阅读(185) 评论(0) 推荐(0)
摘要:DataTable dt = new DataTable(); System.Data.SqlClient.SqlConnection cnn = new Sy... 阅读全文
posted @ 2015-09-07 10:37 飞行在午夜 阅读(178) 评论(0) 推荐(0)