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