Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a global object in a web app
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01316004
Message ID:
01316233
Views:
13
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform