View Single Post
 
Old October 17th, 2004, 04:32 AM
yoord yoord is offline
Friend of Wrox
 
Join Date: May 2004
Location: Ardabil, Ardabil, Iran.
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default problem in cast of type

hi every one i have a problem with sql server and c# code:
i have a row in my table has decimal or number of type when i insert some value using a web form it fails becuase of
 
Quote:
quote:System.FormatException: Input string was not in a correct format.

it fails if i use Convert.ToInt32() yet it fails again .
any idea to solve this problem.
Thanks in advance.


       YoOrD.
Beauty is not on the face
Beauty is on the heart
~~<<Ghibran Khalil>>~~
__________________
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YoOrD .
Beauty is not on the face
Beauty is on the heart
~~&lt;&lt;Ghibran Khalil&gt;&gt;~~