NAGARAJU TAMADA

NAGARAJU TAMADA

  • NA
  • 205
  • 285.7k

system.invalidcastexception specified cast is not valid. c#

Jul 25 2013 5:57 AM
Hi to all
              Sir i have a problem 'system.invalidcastexception specified cast is not valid. c#" 

                      


                sqlConnection.Open();
                SqlCommand command = new SqlCommand(query, sqlConnection);
                int i = (int)command.ExecuteScalar();
                sqlConnection.Close();


Please solve my problem

Regards
NagaRaju T

Answers (43)