ExecuteNonQuery requires an open and available Connection. The connection\'s current state is closed.
What am I doing wrong here? I\'m assuming you can
You're closing the connection rdr.Close(); and never re-opening it before calling ExecuteNonQuery().
rdr.Close();
ExecuteNonQuery()
You don't actually need to close it at all if it's wrapped in a using as the call to Dispose() will automatically close the connection for you.
using
Dispose()