ASP.NET Page.User is null during AJAX request -
i'm using mvc2 framework , 1 of views has bit of conditional logic gets page.user.identity object , comparison other values determine display.
that works fine on initial page load, when make ajax call partial page updates (i'm doing manually yui3, not .net ajax stuff) page.user object null.
anyone know why page context seems discarding user object asynchronous requests?
thanks,
chris
if request-handling method static webmethod
, there won't page instance work , page
null
(that is, won't able resolve page.user
).
if indeed problem, use httpcontext.current.user
instead. (and sure read why asp.net ajax page methods have static?)
Comments
Post a Comment