string str="server=localhost;database=TEST;Integrated Security=SSPI";
string cmd="select * from student";
SqlDataAdapter da=new SqlDataAdapter(cmd,str);
DataSet ds=new DataSet();
da.Fill(ds);
DataGrid1.DataSource=ds.Tables[0];
这段简单的代码为什么在WINFORM里能够正确执行,但到了ASP.NET中却不行了呢