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:
01316201
Views:
20
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,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform