主题:为什么我的DataGrid绑定数据库在网页上显示不出来??
这是代码~~
SqlConnection conn = new SqlConnection("server=.;uid=sa;database=FlightSystem");
SqlDataAdapter da=new SqlDataAdapter("select * from flight",conn);
DataSet ds=new DataSet();
da.Fill(ds,"flight");
DataGrid1.DataSource=ds;
DataGrid1.DataBind();
测试~~网页是空的。哪里没有绑上阿???
SqlConnection conn = new SqlConnection("server=.;uid=sa;database=FlightSystem");
SqlDataAdapter da=new SqlDataAdapter("select * from flight",conn);
DataSet ds=new DataSet();
da.Fill(ds,"flight");
DataGrid1.DataSource=ds;
DataGrid1.DataBind();
测试~~网页是空的。哪里没有绑上阿???