Click here to Skip to main content
15,889,116 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Silverlight concept.... Pin
Christian Graus16-Mar-09 1:00
protectorChristian Graus16-Mar-09 1:00 
Questionregular expression in ajax tab container/tab pannel Pin
wasifmuneer15-Mar-09 23:23
wasifmuneer15-Mar-09 23:23 
QuestionHttpCOntext is null for windows application Pin
gottimukkala15-Mar-09 23:15
gottimukkala15-Mar-09 23:15 
AnswerRe: HttpCOntext is null for windows application Pin
SeMartens15-Mar-09 23:24
SeMartens15-Mar-09 23:24 
GeneralRe: HttpCOntext is null for windows application Pin
gottimukkala15-Mar-09 23:35
gottimukkala15-Mar-09 23:35 
GeneralRe: HttpCOntext is null for windows application Pin
SeMartens16-Mar-09 2:10
SeMartens16-Mar-09 2:10 
GeneralRe: HttpCOntext is null for windows application Pin
gottimukkala16-Mar-09 2:15
gottimukkala16-Mar-09 2:15 
GeneralRe: HttpCOntext is null for windows application Pin
SeMartens16-Mar-09 2:33
SeMartens16-Mar-09 2:33 
1. Change the signature of your loadSettings-method

public GlobalSettings LoadSettings() {
  // load the settings (but don't store them in the context)
  // return loaded settings
}


2. Then change your GlobalSettings-property in ConfigurationProvider

 public GlobalSettings GlobalSettings {
    get {
          GlobalSettings oSettings = null;
          // check for context
          if(this.context != null) {
             // load from context ApplicationState
          } 

          // check if found
          if(oSettings == null) {
             // load
             oSettings = this.LoadSettings();

             // check again for context
             if(this.context != null) {
                // save settings in ApplicationState
             }
          } 

          // return result
          return oSettings;
    }
}


This should work.

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

QuestionJavascript [modified] Pin
Ch.Gayatri Subudhi15-Mar-09 23:05
Ch.Gayatri Subudhi15-Mar-09 23:05 
GeneralRe: Javascript Pin
Christian Graus15-Mar-09 23:17
protectorChristian Graus15-Mar-09 23:17 
GeneralRe: Javascript Pin
Ch.Gayatri Subudhi15-Mar-09 23:25
Ch.Gayatri Subudhi15-Mar-09 23:25 
GeneralRe: Javascript Pin
Christian Graus15-Mar-09 23:38
protectorChristian Graus15-Mar-09 23:38 
GeneralRe: Javascript Pin
Ch.Gayatri Subudhi16-Mar-09 0:36
Ch.Gayatri Subudhi16-Mar-09 0:36 
GeneralRe: Javascript Pin
Christian Graus16-Mar-09 1:01
protectorChristian Graus16-Mar-09 1:01 
GeneralRe: Javascript Pin
Ch.Gayatri Subudhi16-Mar-09 18:11
Ch.Gayatri Subudhi16-Mar-09 18:11 
QuestionRefresh parent Grid Pin
Member 322226415-Mar-09 22:34
Member 322226415-Mar-09 22:34 
AnswerRe: Refresh parent Grid Pin
Christian Graus15-Mar-09 23:17
protectorChristian Graus15-Mar-09 23:17 
QuestionMaster Page in VS 2005 Pin
Member 322226415-Mar-09 22:30
Member 322226415-Mar-09 22:30 
AnswerRe: Master Page in VS 2005 Pin
Christian Graus15-Mar-09 23:19
protectorChristian Graus15-Mar-09 23:19 
Question[Message Deleted] Pin
bikash pattanayak15-Mar-09 21:57
bikash pattanayak15-Mar-09 21:57 
AnswerRe: Refresh the parent window from chield Pin
rakeshs31215-Mar-09 22:02
rakeshs31215-Mar-09 22:02 
AnswerRe: Refresh the parent window from chield Pin
www.Developerof.NET15-Mar-09 22:35
www.Developerof.NET15-Mar-09 22:35 
GeneralRe: Refresh the parent window from chield [modified] Pin
bikash pattanayak15-Mar-09 23:44
bikash pattanayak15-Mar-09 23:44 
Questioni want full path of the selected file..using FileUpload1 control Pin
ven32115-Mar-09 21:42
ven32115-Mar-09 21:42 
AnswerRe: i want full path of the selected file..using FileUpload1 control Pin
rakeshs31215-Mar-09 22:01
rakeshs31215-Mar-09 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.