Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please guys help me, am facing this error.

Value was either too large or too small for an Int32.
Posted
Comments
samit kaneriya 28-Oct-13 9:07am    
which type of value u want to store in Integer give sample so then i able to guide u

int and Int32 has the following range : -2,147,483,648 to +2,147,483,647

So check you are in this range before coding, otherwise use a long.
 
Share this answer
 
v2
Comments
thatraja 28-Oct-13 9:18am    
Beat me to it, 5!
Mehdi Gholam 28-Oct-13 9:23am    
:) Thanks!
NagarajDJ 29-Oct-13 8:15am    
Hello Mehdi,

But my problem is, am binding Citys list (CityId, CityName) to dropdownlist this works fine.

now, by sending the CityId from the dropdownlist selected value, am getting another results and that result am binding to repeater.

The problem is when i select value in dropdownlist, am getting error before firing the event.

How to dot this.
Mehdi Gholam 29-Oct-13 14:31pm    
I can't really help you with that since I can't see what you have done, as always run your program in the debugger and trace what is happening.
Well, the error message is clear: your program is trying to assing an out-of-range value to an Int32 (valid range is: -2147483648, 2147483647). You could get a better help posting the relevant code here.
 
Share this answer
 
Comments
thatraja 28-Oct-13 9:24am    
But you're too late, 5!
CPallini 28-Oct-13 9:46am    
Indeed. Thank you.

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