The message explains the error. This error quite obvious if you are trying to store an Integer Value in an string.
Following are checkpoint here in your code:
1. If s.insert
is returning Integer
then variable x
should be an Integer
.
2. If s.insert
is returning String
then variable x
should be a String
.
Try this:
int x = s.insert("inserttblemployeedetail");
if (x > 0)
{
Interaction.MsgBox("Saved");
}
else
{
Interaction.Msgbox("Not Saved&");
}
--Amit