Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic data editing/saving
Message
De
22/04/2003 21:10:38
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00779261
Message ID:
00780428
Vues:
9
Victor,

I don't know the MM framework, but that error indicates that either your dsGetEmployee DataSet or your oEmployee Biz object has not been instantiated yet.

Try tracing it to see which one is wrong and go from there.

~~Bonnie


>Here is my code in my Submit:
>private void Submit1_ServerClick(object sender, System.EventArgs e)
>{
>// Get a reference to the Employee business object
>Employee oEmployee = (Employee)this.GetBizObj(typeof(Employee));
>// Get the persisted Employee record
>DataSet dsGetEmployee = (DataSet)Session["dsGetEmployee"];
>// Save the DataSet, which causes all two-way bound controls to
>// save their data into the employee record
>oEmployee.SaveDataSet(dsGetEmployee); <--------
>}
>
>I can't get this to work in VS.NET 2002/MM.NET BETA 9 - I keep getting "Object reference not set to an instance of an object."
>
>It keep pointing to the last line. Any Ideas?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform