Error: Expected type is Int32

Posted by Rajmahadev123 under VB.NET on 1/3/2013 | Points: 10 | Views : 1496 | Status : [Member] | Replies : 1
Hi, This Raj.

I am getting this error while i'm running my application.
Can any one please help me out of this. Its very urgent....

Error : Input string was not in a correct format.Couldn't store <> in Ticket_Amount Column. Expected type is Int32.



Code :
DataHelper.LogSaveChange(dtHomeflight.DataRow, strChanges, "LeaveParentTransaction_No", LeaveParentTransactionNo, 40)
DataHelper.LogSaveChange(dtHomeflight.DataRow, strChanges, "Flight_From", txtFrom.Text, 40)
DataHelper.LogSaveChange(dtHomeflight.DataRow, strChanges, "Flight_To", txtTo.Text, 40)
DataHelper.LogSaveChange(dtHomeflight.DataRow, strChanges, "Ticket_Amount", txtAmount.Text, 5)


In database Ticket_Amount column data type is Integer.

Thanks...

Raj Mahadev.




Responses

Posted by: .Netlearner on: 1/7/2013 [Member] Starter | Points: 25

Up
0
Down
Hello Raj,

Can you make ur question much clear.Could u send the code.Whether you checked with breakpoint at which line error is thrown and all.


Rajmahadev123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response