i have a question in invalid operation exception. it says that " ExecuteReader Connection is closed and must be open
Code ASP:SqlConnection conn = new SqlConnection("Server=localhost\\SqlExpress;" + "Database=db;Integrated Security=True"); SqlCommand comm = new SqlCommand("SELECT EmpID, Name FROM Employee", conn); SqlDataReader reader = comm.ExecuteReader();



Reply With Quote




Bookmarks