None of the solutions worked for me. The code he complains about is this:
thisSession = ((SiteMasterPage)this.Master).foo;
I bring the main page of the general page profile to a specific main page, which gives me access to the foo object on the main page of the page, which is a complex object with trivial user data.
If you want to know why I am doing this, this is because so far this is the best solution. Requirements dictate that I cannot extend the page class, session variables, or cookies, and this must be user-specific data.
I do not have enough reputation for comments, so I have to answer in reply. :(
using System.Noob Oct 27 '15 at 13:47 2015-10-27 13:47
source share