Aleena Saviour

Aleena Saviour

  • NA
  • 519
  • 87.7k

Convertion of object type data into Integer

Nov 3 2016 7:15 AM
How to convert object to integer.?
 
object result = cmd.ExecuteScalar();
int id = Convert.ToInt32(result);
 
this code gives me error.. 
 

Answers (9)