Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a global object in a web app
Message
 
À
08/05/2008 23:07:05
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:
01316013
Vues:
19
The web page, cookies, the session object, etc. are not available in the BO as far as I can tell.

>You store the info in a hidden field on the web page, in a cookie, or in a database on the server, but you'll need some type of identifier to retrieve the information.
>
>>I've got a web app with an Employee page which doubles as both "Add New" or "Edit" edit modes. In my Business Object (BO) I have an EmployeeRules.partial.cs where I have my own custom validation rules that I want to run differently depending on which edit mode I'm in. The web page will have the knowledge as to which edit mode I'm currently in.
>>
>>What global object exists in both places?
>>
>>No, the web Session object doesn't exist in the BO rules object.
>>
>>Nor does the appWeb object exist in the BO rules object.
>>
>>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform