473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1024
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********@gmail.comwrote in message
news:ca**********************************@m45g2000 hsb.googlegroups.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
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...
2
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...
10
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...
10
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....
10
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...
1
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...
22
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: ...
18
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.