Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if adding a record or saving an existing record
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Determining if adding a record or saving an existing record
Versions des environnements
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01416856
Message ID:
01416856
Vues:
94
Hello all,

I am using the 'HookPostSave' object Hook method for one of my business objects and want to do something only when saving on the add of a new record as opposed to when saving an existing record. The code should be like the following:
if (BusinessObject.isAdding)
{
     do something here
}
else
     return
What property do I need to use to tell me I am adding a new record? Is this something that is available? Or do I need to use another hook method?

TIA

Bob
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform