12 2017 档案

摘要:DataSet用来对数据库进行操作,如果直接读取,使用ADO.NET的DataReader即可; 显示数据表的操作: protected void Page_Load(object sender, EventArgs e) { //DataSet在从数据源中获取数据后就断开了与数据源的连接,即Dat 阅读全文
posted @ 2017-12-20 17:11 倾城、殇满泪 阅读(2247) 评论(0) 推荐(0)
摘要:protected void Page_Load(object sender, EventArgs e) { SqlConnection myConnection = new SqlConnection(); String sqlconn = "Server=localhost;DataBase=L 阅读全文
posted @ 2017-12-20 16:43 倾城、殇满泪 阅读(844) 评论(0) 推荐(0)
摘要:SqlConnection con = new SqlConnection();//创建connection对象连接数据库,con为新建的connection对象 string constr= "server=localhost;database=Bookst;integrated security 阅读全文
posted @ 2017-12-18 21:08 倾城、殇满泪 阅读(669) 评论(0) 推荐(0)