Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Network:
Windows 2003 Server
>Jeff,
>
>>What object/class is available to me for communicating which edit mode I'm currently in so I can run a different set of validation rules?
>
>The equivalent of a global variable in .NET is a static variable or property. However, since all users in an ASP.NET web application have access to the same static variables, you can’t use them to store instance-specific information. Bruce’s suggestion on checking state is a good one!
>
>Best Regards,
Thanks. Yes, I went with checking state of the datarow.
And I understand about static properties, but am still wondering if there is an object instance (the BO?) that can carry a flag across the application from webpage to the validation code in the rules code. Or does that get into subclassing the Framework which I don't want to do.
Again, thanks.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement