using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
namespace _11_26数据库连接内容1
{
public partial class lianxi2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string constr = "data source=.;initial catalog=最终的练习;user id=sa;password=admin";
using (SqlConnection con = new SqlConnection(constr))
{
string sql = "select * from T_TbClass;select * from Student";
using (SqlCommand cmd = new SqlCommand(sql, con))
{
con.Open();
using (SqlDataReader reader = cmd.ExecuteReader())
{<