I keep getting this exception:
No data exists for the row/column.
string SQL = "SELECT htmlCodeBlock FROM HTML WHERE htmlID = 1";
command.CommandText = SQL;
command.Connection = conn;
reader = command.ExecuteReader();
codeBlock = reader["htmlCodeBlock"].ToString();
It doesn't appear that you call
Read() on the DataReader before trying to read data from it.