Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input string was not in a correct format
Message
 
To
24/04/2006 05:17:31
Ilyas Mirza
Kensington Computersd
London, United Kingdom
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01114905
Message ID:
01116161
Views:
13
Ilyas,

>All the fields which are causing problems are set to allow nulls in the database. If I don't bind the field to a control, then a row is added to table without any problems.

Based on the error you posted previously:

System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ToInt32(Object value) at System.Data.Common.Int32Storage.Set(Int32 record, Object value) at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <> in Ticket_Contact_id Column. Expected type is Int32.

It looks like the problem is occuring when trying to store a null value into the Ticket_Contact_id column. Can you post the entire stack trace so we can have more information?

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform