Questions tagged [application-state]

Use this tag for questions related to the Application State; an application can be at the active state, for example.

99 questions
0
votes
3 answers

Accessing HttpApplicationState during Session_End

In my ASP.NET application using InProc sessions, Session_End calls a static method in another object to do session-specific clean up. This clean up uses a shared database connection that I am storing in application state. The problem is that I…
DocMax
  • 12,094
  • 7
  • 44
  • 44
0
votes
1 answer

Start thread when iOS application enters background state

I have a Requirement where I need to Create and Start a thread when application enters the Background State. The function of the Created Thread is to fetch data from local DB and upload to server, and I don't need to do any updates on UI. My…
RockandRoll
  • 409
  • 5
  • 23
0
votes
1 answer

Windows Store App Saving State Information

I'm just starting to work with windows 8 development (using c#), and am working on porting one of my applications to a windows store app. Essentially my application takes a user input string, calculates an appropriate output, and responds to the…
Nelz11
  • 3,066
  • 1
  • 14
  • 20
0
votes
1 answer

How to detect the state of an app other than mine?

I have looked around, but all suggestions are for checking state of my own app/activity. using the Life Cycle. I need to check if another app is in foreground/ running in background / paused . Is it possible. Based on the state of the app i need to…
Deepak
  • 1,238
  • 3
  • 22
  • 47
0
votes
1 answer

Unable to retrieve Application State in Model class

Im facing a problem in one of MVC projects, that problem is about retrieving values from Application State object. I am storing some value into the Application state in Application_Start() method of Global.axas.cs in this manner: //var str =…
SajjadHashmi
  • 3,795
  • 2
  • 19
  • 22
0
votes
2 answers

Should I store localization content in the application state

I am developing my first multilingual C# site and everything is going ok except for one crucial aspect. I'm not 100% sure what the best option is for storing strings (typically single words) that will be translated by code from my code behind…
Richard Reddy
  • 2,120
  • 3
  • 25
  • 39
0
votes
2 answers

What is the preferred approach to initialize one-time logic in ASP.NET 3.5 WebForms?

Scenario: I have a ASP.NET 3.5 WebForms based website. It contains Foo.aspx, Bar.aspx and baz.html (jQuery template). Typical traffic seen is Foo.aspx (N times), Bar.aspx (N times) and baz.html (10*N times). ASP.NET worker process (aspnet_wp.exe)…
Channs
  • 2,091
  • 1
  • 15
  • 20
0
votes
1 answer

applicationDidBecomeActive: Fails to push appropriate view

With reference to my question asked Change Tab view after certain time interval received as response from Server request, I used following code to show the session timeout message when application comes to active state Method in AppDelegate.m: -…
hp iOS Coder
  • 3,230
  • 2
  • 23
  • 39
0
votes
2 answers

Recycling Options for ASP.Net Application State Object

What are the options for recycling the ASP.Net application state object? I'm using that object to store queues of database connections for a web serviced based data access layer. I'm concerned that over days/weeks/months I'll end up allocating…
Jeff
  • 8,020
  • 34
  • 99
  • 157
1 2 3 4 5 6
7