473,809 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remember Previous Settings for an Application

Mel
What is the best method to achieve this (I am relatively new to
vb.net)? Should I use an ini file or the registry? Is there another
option available in vb.net that is the preferred way? This vb.net
application will reside on our network and more than one user could
possibly run it so I don't think the local registry is the answer.
Basically I just want to remember the options the last user chose on
the form and then use those previously used settings the next time the
program is run.
Aug 19 '08 #1
2 1040
You need to use a client cookie.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Mel" <ML********@gma il.comwrote in message
news:ca******** *************** ***********@m45 g2000hsb.google groups.com...
What is the best method to achieve this (I am relatively new to
vb.net)? Should I use an ini file or the registry? Is there another
option available in vb.net that is the preferred way? This vb.net
application will reside on our network and more than one user could
possibly run it so I don't think the local registry is the answer.
Basically I just want to remember the options the last user chose on
the form and then use those previously used settings the next time the
program is run.

Aug 19 '08 #2
Mel brought next idea :
What is the best method to achieve this (I am relatively new to
vb.net)? Should I use an ini file or the registry? Is there another
option available in vb.net that is the preferred way? This vb.net
application will reside on our network and more than one user could
possibly run it so I don't think the local registry is the answer.
Basically I just want to remember the options the last user chose on
the form and then use those previously used settings the next time the
program is run.
If user A chose some options, should user B see those?
You could store them in the Application or Cache if you don't mind that
they are lost once the site restarts.
But if this site is used very infrequently, it could end itself
(standard behaviour to conserve server resources) before the next user
comes around. This means Application and Cache are emptied.

Your next choice would probably be a database, which doesn't need to be
"big". SqlServer Express will probably do for you.
Writing to a file from a web-application is tricky: you need to
specifically set permissions on the filesystem as the site normally
isn't allowed to write. For a "busy" application you also need to worry
about the situation where two different users would cause a write to
the same file.

Hans Kesting
Aug 19 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
5320
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of copy paste (I hear this will improve in ASP.Net 2 via master pages). When I navigate from one page to the next the header and footer user controls lose their state because they are effectively different instances of the user control. Is there...
2
2419
by: theWizard1 | last post by:
Using Visual Studio.Net 2005, Asp.Net 2.0, and trying to use technique shown in the Programming Asp.Net 3rd Edition by O'Reily, page 257. On the first page, this would become the previous page, I have 2 dropdowns. According to their technique, I should create a public property on my previous page for these 2 dropdowns, and then I would would be able to get their settings on the target aspx page. I have added the 2 properties on the...
10
2539
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files to the remote site. It finish with a message of publish sucess but no files nor folders on the remote disk ? I have checked rights on this folder, everyone have modify.
10
4285
by: Paul Cheetham | last post by:
Hi, I am developing an application that needs to store some machine-specific settings. The application is going to be published on the network in order to keep the clients on the latest version. Because of this, I am unable to store these settings in the App.Config file, as this gets updated every time the application does, and there doesn't appear to be a way of preventing this. Most of my application settings are kept in the...
10
3064
by: Chris Dunaway | last post by:
I have an .exe console project and a class library project as part of a solution. The .exe has an App.config file and I have used the Settings page to add some Application level settings. When I try to retrieve a setting using this code: //Method 1 string s = ConfigurationManager.AppSettings;
1
8145
by: Manikandan | last post by:
Hi, I'm creating a setup project for my c# application(Contains solution, c# project, setup project). In setup project properties, i set removepreviousversion property=true. Created the installer and tested, installed successfully. If i install again means it's asking a dialogue with an option to repair, remove. Now I make some changes in my c# codings and build the installer for the same appliaction.
22
4951
by: cj | last post by:
I was googling for a way to have my single form application start in the same location on the screen it was in when it was closed. I found this very short article: http://blogs.techrepublic.com.com/programming-and-development/?p=540 I can create the my.settings object as specified but I can't set the form1's location to mainformlocation in form1's properties. It takes an X and Y location.
18
1452
by: Mel | last post by:
What is the best method to achieve this (I am relatively new to vb.net)? Should I use an ini file or the registry? Is there another option available in vb.net that is the preferred way? This application will reside on our network and more than one user could possibly run it so I don't think the local registry is the answer. Basically I just want to remember the options the last user chose on the form and then use those previously used...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10379
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.