基础教程作者978-7-302-28929-6chapter08课案.pptVIP

  • 11
  • 0
  • 约1.3万字
  • 约 33页
  • 2017-03-03 发布于广东
  • 举报

基础教程作者978-7-302-28929-6chapter08课案.ppt

基础教程作者978-7-302-28929-6chapter08课案.ppt

五、填充数据集 2、使用DataTable,DataColumn,DataRow 示例: 1. protected void Page_Load(object sender, EventArgs e) 2. { 3. String sqlconn = Data Source=HZIEE-2E53F913F;Initial Catalog=SuperMarket;Integrated Security=True; 4. SqlConnection myConnection = new SqlConnection(sqlconn); 5. myConnection.Open(); 6. SqlCommand myCommand = new SqlCommand(select * from Product, myConnection); 7. SqlDataAdapter Adapter = new SqlDataAdapter(); 8. Adapter.SelectCommand = myCommand; 9. DataSet myDs = new DataSet(); 10. Adapter.Fill(myDs); 11. Response.Write(h3使用Da

文档评论(0)

1亿VIP精品文档

相关文档