Hello,
I am in the process of creating an ASP.NET website based on dnn and I need some advice related to performance tuning.
For this I would like to programmatically change one of the @Page directive settings at runtime, depending on the page the user is on. This works for view_state, by changing the Page.Enableview_state property in code.
However, there is no equivalent method available that relates to disabling Session State. One can define at page level, in the @Page directive, the "EnableSessionState" attribute, but this is not programmatically accessible with a method.
It would seem that I'm therefore required to read in the correct @Page directive at runtime itself. This directive is defined in default.aspx, but due to a lack of dnn experience and knowledge, I'm not sure what the best way is to proceed.
Does a DNN function exist that gives me access to one of the @Page attributes?
If not, how can I then implement what I'd like to achieve (disabling Session State at runtime, at page level)?
Does every DNN page have to use the same Default.aspx or can I refer a page to another one, with the correct @Page directive?
Thanks a lot!