Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi every One,

I am getting error as Is Not Valid Value For Int32
during the insertion. and thers control are in formview. can any one tell the reason for the error

thanks

[Modified: unchecked "Ignore HTML in text" so your bold tags would work]
Posted
Updated 24-Jun-10 5:57am
v2
Comments
Sandeep Mewara 24-Jun-10 8:46am    
Please mention what were you doing that you got this error? When exactly... while saving or page load?
Also, which version of .NET framework you are on?
William Winner 24-Jun-10 11:58am    
Reason for my vote of 1
we're not mind-readers...you have to provide the code that you're using that throws the error.

But, the simple answer is that you're trying to set an Int32 with a value either greater than 2,147,483,647, less than -2,147,483,647, or that is a complex type.

The error in simple English means that value you are inserting is not a valid integer value.
Debug the code. Put a break point before you insert the value. It may not be a valid int32 value as in out of range or value with some string in it.
 
Share this answer
 
Hi,
Very common reason for this type of problem is that u are trying to insert a value which is not an integer value. U can check this by inserting a breakpoint in the line and then view it in quickwatch window.
 
Share this answer
 
Comments
[no name] 2-Apr-20 0:49am    
all this are not solutions. i am looking for something like this but the fact that you guys put it as a solution, you are wrong
mojtaba .alasvand5502 31-Aug-23 8:12am    
hello a situation chang size

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900