Re: Checking for state's existence

Efran Cobisi <[email protected]> Mon, 21 Apr 2008 17:51:56 +0200
Newsgroups gmane.comp.windows.devel.dotnet.web
Organization cobisi.com
Message-ID <[email protected]>
> Putting the check in the masterpage seemed ideal, but
> the page events fire first, so that isn’t a lot of help.
Better not; doing so would require every page needing to access your
session items would either have that masterpage applied or break the
incapsulation logic behind that.
> Should I put
> the validation into a base page inherited by each page?
This is my preferred approach; one base page for each project I develop
for. This one would allow for future base page enhancements as well,
encouraging polymorphism, inheritance and encapsulation.

HTH

--
Efran Cobisi
http://www.cobisi.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com