Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a global object in a web app
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01316004
Message ID:
01316233
Vues:
14
>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
Fil
Voir

Click here to load this message in the networking platform