473,320 Members | 1,722 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,320 software developers and data experts.

Saving values in a text box?

Hello All!
I was wondering how I can go about saving the last string entered into a
textbox. I would like to save username or pwd info in textboxes in my forms
so that users don't have to continually type them!

Thanks!

Luis
Nov 20 '05 #1
12 1449
Use server textboxes (System.Web.UI.WebControls.Textbox). They
automatically do what you want.
"Anon" <an**@anon.com> wrote in message
news:OL*************@tk2msftngp13.phx.gbl...
Hello All!
I was wondering how I can go about saving the last string entered into a
textbox. I would like to save username or pwd info in textboxes in my forms so that users don't have to continually type them!

Thanks!

Luis

Nov 20 '05 #2
Winform? Lots of ways to do this. I am creating a class that holds the
username and serializing it to disk in the user profile folder.

email me if you want the code

Greg

"Anon" <an**@anon.com> wrote in message
news:OL*************@tk2msftngp13.phx.gbl...
Hello All!
I was wondering how I can go about saving the last string entered into a
textbox. I would like to save username or pwd info in textboxes in my forms so that users don't have to continually type them!

Thanks!

Luis

Nov 20 '05 #3

"Anon" <an**@anon.com> wrote in message
news:OL*************@tk2msftngp13.phx.gbl...
Hello All!
I was wondering how I can go about saving the last string entered into a
textbox. I would like to save username or pwd info in textboxes in my forms so that users don't have to continually type them!

Thanks!

Luis


If it's a Windows Forms (desktop) application, you can save it to the
registry.

For any type of app, you can save the information to a database table. If
the permissions of the executing machine allow it, you can also save to the
filesystem as XML or text. For a browser-based app, you could use a cookie
stored on the user's machine.

It is an extremely bad security practice to automatically populate a
password field (you might as well just stick a post-it note with the info on
the monitor). *NEVER* do this. However, in the case of a browser-based app
using a cookie, automatic login (without displaying the login form) is a
common practice. If you do this, be certain you encrypt the password so it
can't be simply read by someone who gains access to the computer. I advise
against doing this where the data being accessed is sensitive.

You really should explain to the users of your app that the few extra
keystrokes they have to enter to login is far better for security. If they
complain, tell them then they shouldn't bother with security at all and just
leave it wide open for anyone, since that's essentially what they're
wanting.

Alan
Nov 20 '05 #4
Hi,

http://msdn.microsoft.com/vbasic/usi...et07082003.asp

Ken
----------------------------------
"Anon" <an**@anon.com> wrote in message
news:OL*************@tk2msftngp13.phx.gbl...
Hello All!
I was wondering how I can go about saving the last string entered into a
textbox. I would like to save username or pwd info in textboxes in my
forms
so that users don't have to continually type them!

Thanks!

Luis

Nov 20 '05 #5
* "Scott M." <s-***@nospam.nospam> scripsit:
Use server textboxes (System.Web.UI.WebControls.Textbox). They
automatically do what you want.


In a /Windows Forms/?!

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
It has not yet been determined... :^)

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2l************@uni-berlin.de...
* "Scott M." <s-***@nospam.nospam> scripsit:
Use server textboxes (System.Web.UI.WebControls.Textbox). They
automatically do what you want.


In a /Windows Forms/?!

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #7
He didn't say Windows forms.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2l************@uni-berlin.de...
* "Scott M." <s-***@nospam.nospam> scripsit:
Use server textboxes (System.Web.UI.WebControls.Textbox). They
automatically do what you want.


In a /Windows Forms/?!

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #8
I sure would be interested in the class that serializes to a user profile folder. My e-mail is dh*****@houston.rr.com. Thanks.
--
Dennis in Houston
"Greg Burns" wrote:
Winform? Lots of ways to do this. I am creating a class that holds the
username and serializing it to disk in the user profile folder.

email me if you want the code

Greg

"Anon" <an**@anon.com> wrote in message
news:OL*************@tk2msftngp13.phx.gbl...
Hello All!
I was wondering how I can go about saving the last string entered into a
textbox. I would like to save username or pwd info in textboxes in my

forms
so that users don't have to continually type them!

Thanks!

Luis


Nov 20 '05 #9
I hope that is an email alias, otherwise you can expect lots of additional
spam from the spambots that scour newsgroups looking for email addresses.
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
I sure would be interested in the class that serializes to a user profile folder. My e-mail is dh*****@houston.rr.com. Thanks. --
Dennis in Houston
"Greg Burns" wrote:
Winform? Lots of ways to do this. I am creating a class that holds the
username and serializing it to disk in the user profile folder.

email me if you want the code

Greg

"Anon" <an**@anon.com> wrote in message
news:OL*************@tk2msftngp13.phx.gbl...
Hello All!
I was wondering how I can go about saving the last string entered into a textbox. I would like to save username or pwd info in textboxes in my

forms
so that users don't have to continually type them!

Thanks!

Luis


Nov 20 '05 #10
I am quick with the delete key! Also protected by every means know to man so don't mind spam e-mail as i never read it, just delete it.
--
Dennis in Houston
"Scott M." wrote:
I hope that is an email alias, otherwise you can expect lots of additional
spam from the spambots that scour newsgroups looking for email addresses.
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
I sure would be interested in the class that serializes to a user profile

folder. My e-mail is dh*****@houston.rr.com. Thanks.
--
Dennis in Houston
"Greg Burns" wrote:
Winform? Lots of ways to do this. I am creating a class that holds the
username and serializing it to disk in the user profile folder.

email me if you want the code

Greg

"Anon" <an**@anon.com> wrote in message
news:OL*************@tk2msftngp13.phx.gbl...
> Hello All!
> I was wondering how I can go about saving the last string entered into a > textbox. I would like to save username or pwd info in textboxes in my
forms
> so that users don't have to continually type them!
>
> Thanks!
>
> Luis
>
>


Nov 20 '05 #11
Dennis, here is a link to that class I posted earlier

http://tinyurl.com/5vg48

If you need me to explain how it works, just let me know. May not be the
best method, but it is working for me. :^)

Greg
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com...
I am quick with the delete key! Also protected by every means know to man so don't mind spam e-mail as i never read it, just delete it. --
Dennis in Houston
"Scott M." wrote:
I hope that is an email alias, otherwise you can expect lots of additional spam from the spambots that scour newsgroups looking for email addresses.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
I sure would be interested in the class that serializes to a user profile
folder. My e-mail is dh*****@houston.rr.com. Thanks.
--
Dennis in Houston
"Greg Burns" wrote:

> Winform? Lots of ways to do this. I am creating a class that holds
the > username and serializing it to disk in the user profile folder.
>
> email me if you want the code
>
> Greg
>
> "Anon" <an**@anon.com> wrote in message
> news:OL*************@tk2msftngp13.phx.gbl...
> > Hello All!
> > I was wondering how I can go about saving the last string entered into a
> > textbox. I would like to save username or pwd info in textboxes in

my > forms
> > so that users don't have to continually type them!
> >
> > Thanks!
> >
> > Luis
> >
> >
>
>
>


Nov 20 '05 #12
There is some code in this article doing something similar to my class, but
uses isolated storage. You may want to check it out.

http://msdn.microsoft.com/library/de...un03282003.asp

Greg

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Dennis, here is a link to that class I posted earlier

http://tinyurl.com/5vg48

If you need me to explain how it works, just let me know. May not be the
best method, but it is working for me. :^)

Greg
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com...
I am quick with the delete key! Also protected by every means know to man
so don't mind spam e-mail as i never read it, just delete it.
--
Dennis in Houston
"Scott M." wrote:
I hope that is an email alias, otherwise you can expect lots of
additional spam from the spambots that scour newsgroups looking for email addresses.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
> I sure would be interested in the class that serializes to a user profile folder. My e-mail is dh*****@houston.rr.com. Thanks.
> --
> Dennis in Houston
>
>
> "Greg Burns" wrote:
>
> > Winform? Lots of ways to do this. I am creating a class that
holds the > > username and serializing it to disk in the user profile folder.
> >
> > email me if you want the code
> >
> > Greg
> >
> > "Anon" <an**@anon.com> wrote in message
> > news:OL*************@tk2msftngp13.phx.gbl...
> > > Hello All!
> > > I was wondering how I can go about saving the last string
entered
into a
> > > textbox. I would like to save username or pwd info in textboxes
in
my > > forms
> > > so that users don't have to continually type them!
> > >
> > > Thanks!
> > >
> > > Luis
> > >
> > >
> >
> >
> >


Nov 20 '05 #13

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

Similar topics

5
by: ken | last post by:
I have a XML file as below ---------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" standalone="yes"?> ...
1
by: Paul H | last post by:
Say I have a table called tblPeopleInfo, one of the fields in the table is called FavouriteFruit. The FavouriteFruit field is a lookup field and will contain Apples, Oranges, Grapes etc..The list...
12
by: Ivan Sammut | last post by:
Hi, I created an access database and I am using ado.net to access it. Now I am trying to create an update statment but I am having some error when so fields are empty. Here is my statment...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
1
by: Nikhil Patel | last post by:
Hi, I bind a grid to a DataView object. I lose the reference to the underlying DataTable and the DataSet in a postback. Here is the code. Page_Load works fine and I am able to see the rows in...
4
by: Amjad | last post by:
Hi, I'm trying to create dynamic default values in TextBoxes that reflect the last user's input value. How can I save the user's input in a textbox control so that the user can see his last...
4
by: Nemisis | last post by:
Hi everyone, I am wondering if anyone has tried the following saving values from a page to a database using CallBack? is this possible? Basically instead of pressing a button that contacts...
2
by: Tal Shachar | last post by:
Hi, I have a windows application that needs to save some user preferences to an xml and to load it on the next application run. Saving the preferences is done per user. I know that there is a way...
3
by: pozze | last post by:
Hi, I've just made the change from ASP to .net. I have a file (code below) that saves a user submitted file to a MS SQL 2005 database. It collects the file name, file size, file type, and lastly...
1
Sl1ver
by: Sl1ver | last post by:
i've got this piece of coding. i need help with opening a picture box and then saving it as OLE Object in access DB How would i massage this code tho fit in? try { //save image to byte...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.