P
Prodip Saha
I am trying to assign a value to a variable (of string type) from database
column and it's giving me Specified cast is not valid. Can you tell me
what's wrong with the statement?
string _strVar1;
//DataRow["DataColumnName"] is Int32 type coming from Database
_strVar1=((Int32)DataRow["DataColumnName"]).ToString();
I can assign the value in Immediate window w/o any problem but I am not been
able to execute this line of code. It gives me Specified cast is not valid.
Thanks,
Prodip
column and it's giving me Specified cast is not valid. Can you tell me
what's wrong with the statement?
string _strVar1;
//DataRow["DataColumnName"] is Int32 type coming from Database
_strVar1=((Int32)DataRow["DataColumnName"]).ToString();
I can assign the value in Immediate window w/o any problem but I am not been
able to execute this line of code. It gives me Specified cast is not valid.
Thanks,
Prodip