Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem saving with custom data access class
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00940287
Message ID:
00940625
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform