9
Answers

Convertion of object type data into Integer

Photo of Aleena Saviour

Aleena Saviour

8y
1.3k
1
How to convert object to integer.?
 
object result = cmd.ExecuteScalar();
int id = Convert.ToInt32(result);
 
this code gives me error.. 
 

Answers (9)