Phylum Posted August 5, 2003 Posted August 5, 2003 How would you make a variable that is global to the solution? I know about the config file. The problem is that there are several users using the program and the variable value would be unique to each of them. Is there any way of caching a value like the configurationsettings does? Quote
JABE Posted August 6, 2003 Posted August 6, 2003 I suppose this is for an ASP.NET app? Take a look at various state-management techniques. This link should take you to a good start. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspstatemanagement.asp Quote
Phylum Posted August 7, 2003 Author Posted August 7, 2003 Actually this is for a windows application. What I am trying to do is have a variable or chached xml file that is shared accross projects. The config file is an example of this, but what I need is a user by user based version. Quote
Administrators PlausiblyDamp Posted August 7, 2003 Administrators Posted August 7, 2003 Easiest way is to store the config settings in a user defined class and mark it as serialzable (makes reading / writing to a stream very easy). Then store this in a sub-folder of the user's Application Data folder -you can obtain the path to it by environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.