12 2017 档案
摘要:DataSet用来对数据库进行操作,如果直接读取,使用ADO.NET的DataReader即可; 显示数据表的操作: protected void Page_Load(object sender, EventArgs e) { //DataSet在从数据源中获取数据后就断开了与数据源的连接,即Dat
阅读全文
摘要:protected void Page_Load(object sender, EventArgs e) { SqlConnection myConnection = new SqlConnection(); String sqlconn = "Server=localhost;DataBase=L
阅读全文
摘要:SqlConnection con = new SqlConnection();//创建connection对象连接数据库,con为新建的connection对象 string constr= "server=localhost;database=Bookst;integrated security
阅读全文

浙公网安备 33010602011771号