SqlDataReader问题!高手进来看!顶者有分不够+分!在线等
string PriceID = Request.QueryString[ "pid "].ToString();
SqlConnection con = showclass.datacon.AutoCon();
con.Open();
SqlDataAdapter sdz = new SqlDataAdapter( "cc_cc " + PriceID,con);
DataTable dt = new DataTable();
sdz.Fill(dt);
this.Label1.Text = dt.Rows[0][ "auto_price "].ToString();
this.Label2.Text = dt.Rows[0][ "auto_price1 "].ToString();
this.Label3.Text = dt.Rows[0][ "auto_price2 "].ToString();
我向把用SqlDataAdapter和DataTable显示换成SqlDataReader显示应该如何做应为!SqlDataReader速度比较快!我是新手刚刚入门请大伙看看那里需要修改?
------解决方案--------------------