Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Input string was not in a correct format
Message
 
À
24/04/2006 05:17:31
Ilyas Mirza
Kensington Computersd
London, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01114905
Message ID:
01116161
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform