Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox
Message
De
13/07/2011 08:17:53
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Combobox
Divers
Thread ID:
01518054
Message ID:
01518054
Vues:
83
I have a combobox with all properties set as stated in the "Jump Start". When I save the "BindingValueSource" business object all fields are filled in as expected, but my FK field gets replaced with the number 0 instead of retaining the value that was passed when the save began.

When I create the relationship on the database the save throws an error stating that there's a conflict on the "BindingSource" business object of the combobox. I'm only adding one record and thats to the "BindingValueSource" business object. When I get to "mmBusinessForm.cs" and look at the "bizObj" it has all the values I'm expecting. When it gets to:

// Call the business object's SaveDataSet method
result = bizObj.SaveDataSet(tableName, currentRow);

-------->Line 1468 on mmBusinessForm.Save

It throws an error when I have the relationship between the two tables.

The Insert statement sonflicted with foreign key constraint...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform