R
Raghu
The global.asax page can have an event handler for AcquireRequestState. This
is where a session can be accessed for the first time before the control
ends up in the target page itself.
However if the target page has its EnableSession property set to false, then
the Session property can not be accessed (either in the page or in
Global.asax) as there will be no session. In such case, if Session property
is accessed, the HttpException (with message: Session is not valid in this
context) is thrown.
Is there a programmatic way (that does not include catching exception) of
detecting if currently executing page has the session disabled in the
global.asax?
Thanks.
Raghu/..
is where a session can be accessed for the first time before the control
ends up in the target page itself.
However if the target page has its EnableSession property set to false, then
the Session property can not be accessed (either in the page or in
Global.asax) as there will be no session. In such case, if Session property
is accessed, the HttpException (with message: Session is not valid in this
context) is thrown.
Is there a programmatic way (that does not include catching exception) of
detecting if currently executing page has the session disabled in the
global.asax?
Thanks.
Raghu/..