General information
Category:
The Mere Mortals .NET Framework
Environment versions
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only