Created
October 22, 2012 17:00
-
-
Save rousso/3932563 to your computer and use it in GitHub Desktop.
PageState: You can use PageState much like you use ViewState
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SomeClass SomePoperty | |
{ | |
get | |
{ | |
return PageState["SOME_PROPERTY_NAME"] ?? | |
(PageState["SOME_PROPERTY_NAME"] = default(SomeClass)) as SomeClass; | |
} | |
set | |
{ | |
PageState["SOME_PROPERTY_NAME"] = value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment