摘要: View Code 1 using (SqlConnection con = new SqlConnection(strcon))2 {3 string sql = "select * from Forums where ForumID=1";4 SqlCommand cmd = new SqlCommand(sql, con);5 con.Open();6 SqlDataReader reader = cmd.ExecuteReader();7 Response.Write(reader[0]); 8 }报错:在没有任何数据时... 阅读全文