Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem saving with custom data access class
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00940287
Message ID:
00940625
Views:
15
Steven,

>private void btnSave_Click(object sender, System.EventArgs e)
>{
> DataSet ds = (DataSet)Session["dsOrganizationType"];
>
> // Kludge/Test code:
> this.oOrganizationType.MyUpdate(ds, this.oOrganizationType.TableName);
> Response.Redirect("OrganizationTypeSelect.aspx");
>
> // Original code:
> //if (this.Save(this.oOrganizationType, ds, this.oOrganizationType.TableName) == mmSaveDataResult.RulesPassed)
> //{
> // Response.Redirect("OrganizationTypeSelect.aspx");
> //}
>}
>

You might want to step through the code and check if "ds" is null after retrieving it from the session variable. Are you sure the dsOrganizationType DataSet is initially being stored in the session variable? Also make sure the spelling of the session variable is the same both when both storing and retrieving the value from the session variable.

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