Aug 09, 2010, 8:19 PM
Access to base class property when using a DirectMethod
In our web application that we're looking at rewriting using Ext.Net, our pages are all subclassed from a PageBase that gives us common access across all pages to the logged in user, employee object, etc. that are stored in Session or loaded each time in context.
When using a DirectMethod, I have access to Session directly and all instance variables on my page, but everything in the base class (PageBase) is null (although normally available during PostBacks. So, referencing the same user object that is in session that I can access directly gives me a null reference error when using the PageBase user property.
Is there something that I need to set in the web.config to make this work correctly?
Thanks!
Jason
Logic Speak
When using a DirectMethod, I have access to Session directly and all instance variables on my page, but everything in the base class (PageBase) is null (although normally available during PostBacks. So, referencing the same user object that is in session that I can access directly gives me a null reference error when using the PageBase user property.
Is there something that I need to set in the web.config to make this work correctly?
Thanks!
Jason
Logic Speak