9
Reply

Convertion of object type data into Integer

Aleena Saviour

Aleena Saviour

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

Answers (9)