Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...changing @Page directive settingschanging @Page directive settings
Previous
 
Next
New Post
11/9/2009 8:55 AM
 

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!

 

 
New Post
11/17/2009 5:01 AM
 

not sure what you are trying to do, but it seems wrong.

You can set page state persistance behaviour in host settings, and DNN does not use session variables at all, so there is no point in turning that either on or off


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
11/17/2009 6:12 AM
 

 I was contemplating the use of a module that does use session state. But I wanted to enable session state only for the page that module is on.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...changing @Page directive settingschanging @Page directive settings


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out