Click here to Skip to main content
15,917,328 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionchanging the data type fields using asp.net Pin
a.stevens16-Mar-09 0:19
a.stevens16-Mar-09 0:19 
AnswerRe: changing the data type fields using asp.net Pin
Christian Graus16-Mar-09 0:36
protectorChristian Graus16-Mar-09 0:36 
GeneralRe: changing the data type fields using asp.net Pin
a.stevens16-Mar-09 14:22
a.stevens16-Mar-09 14:22 
QuestionNo overload for method error Pin
rakeshs31215-Mar-09 23:45
rakeshs31215-Mar-09 23:45 
AnswerRe: No overload for method error Pin
Christian Graus15-Mar-09 23:51
protectorChristian Graus15-Mar-09 23:51 
AnswerRe: No overload for method error Pin
Gaurav K Singh16-Mar-09 0:06
Gaurav K Singh16-Mar-09 0:06 
QuestionSilverlight concept.... Pin
Ch.Gayatri Subudhi15-Mar-09 23:32
Ch.Gayatri Subudhi15-Mar-09 23:32 
AnswerRe: Silverlight concept.... Pin
Christian Graus15-Mar-09 23:38
protectorChristian Graus15-Mar-09 23:38 
AnswerRe: Silverlight concept.... Pin
rakeshs31215-Mar-09 23:47
rakeshs31215-Mar-09 23:47 
GeneralRe: Silverlight concept.... Pin
Ch.Gayatri Subudhi16-Mar-09 0:34
Ch.Gayatri Subudhi16-Mar-09 0:34 
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 
Well, as I can see it you are using the context to get the "GlobalSettings" from the Application-wide cache (ApplicationState). As a windows app itself does not use the same "session-model" like webapps, you have to load the settings when you want them to access.

I propose a little refactoring of your code. Maybe the "loadSettings"-method should return an instance of "GlobalSettings". If you have an instance of HttpContext, store the settings within the context. This will work for your webapps. If there is no HttpContext you are propably within a windows app, so you don't store them within a context, just return them. (If you like to cache them, just use the singleton-pattern).

Hope this helps you a bit.

Regards
Sebastian

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

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

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 
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 

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.