Re: Checking for state's existence
Mark Aurit <[email protected]> Mon, 21 Apr 2008 09:06:49 -0700
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
Thanks much. What event do you suggest I put it in? Efran Cobisi wrote: >> 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 > =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com