state-management

Bring the data module to work with --- pass-Store-use a connection inside a reusable data module

I want to seperate the data module of a site into an assembly ( a single dll file ) , What is the best way to get-store and pass the ConnectionString of the site in dealing with the web application . Inside the data assembly I made a static class named ConnectionManager . It has a property named DatabaseConnectionName , that I want to p...

Cache VS Session VS cookies?

What are the do's and don'ts about Cache VS Session VS Cookies? For example: Im using Session variables a lot and have sometimes problem in a booking-application when users starts to order products and then goes to lunch and come back some hours later and continue the booking. I store the booking in the session until the user confirm or...

ASP.NET MVC - Is there a way to simulate a ViewState?

Hi everyone! I have the following situation... In a certain View, the user must select the initial hour, the final hour and the weekday. But, I can't save this informations to DB 'cause I need to save my whole page and I need the primary key of the primary table, but that's not the point. So, while I don't save these data to DB, I'm sa...

State management issue.

I have three websites which are pointed to, by different domain names. The issue is: If a user logs in at one domain, it is not reflected in the other two domains, and similarly for logout. How to maintain session state for two different domains? ...

Android. Save Instance State for Dialogs?

Hi, I wonder what is the right way to implement this? Could anybody advice whether my solution is correct? So: Activity is created User clicks on button and dialog is launched (Dialog, not dialog styled activity) User opens keyboard we have onSaveInstanceState called where we save that our dialog was opened and all respective dialog ...

Any math approaches to state management of complex objects?

I usually use ASP.net web forms for GUI, maybe one of most "stateful" technologies. But it applies to any technology which has states. Sometimes forms are tricky and complex, with >30 elements and > 3 states of each element. Intuitive way of designing such a form usually works for 90%. Other 10% usually find testers or end-users:). The...

NHibernate auditing in disconnected mode

I'm developing an app with a Silverlight UI, transferring my domain objects over WCF and persisting them via NHibernate. I'm therefore working with NHibernate in a disconnected mode. I'm already using the NHibernate PreUpdate and PreInsert EventListeners to perform some metadata operations (updating Create/Update date, created/updated b...

Does anyone else think instance variables are problematic in database-backed applications?

It occurs to me that state control in languages like C# is not well supported. By this, I mean, it is left upto the programmer to manage the state of in-memory objects. A common use-case is that instance variables in the domain-model are copies of information residing in persistent storage (i.e. the database). Clearly this violates the ...

Session value in Javascript

How to read and write session values in javascript ...

State Management of javascript conent in MVC

I am using asp.net MVC2. i am facing a problem in state management of javascript contents. i have got a image map in which on click on various part of image i am showing same page (redirect with parameters) with some parameter like : Secure/BodyWork?view=7 and on basis of value in parameter view i am showing various content on page. in t...