AppState is a collection of string keys (names) and object values. It doesn't matter that the value assigned to AppState["usertype"] was originally an int. It was changed to an object so that it can be stored in the AppState collection when you assigned
it.
Mikesdotnett...
All-Star
154927 Points
19868 Posts
Moderator
MVP
Re: Problem with AppState
May 16, 2012 06:14 PM|LINK
AppState is a collection of string keys (names) and object values. It doesn't matter that the value assigned to AppState["usertype"] was originally an int. It was changed to an object so that it can be stored in the AppState collection when you assigned it.
AppState derives from NameObjectCollectionBase, which is a self-describing structure.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter