Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic data editing/saving
Message
From
22/04/2003 21:10:38
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00779261
Message ID:
00780428
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform