Saving values in a text box?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anon

    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


  • Scott M.

    #2
    Re: Saving values in a text box?

    Use server textboxes (System.Web.UI. WebControls.Tex tbox). They
    automatically do what you want.


    "Anon" <anon@anon.co m> wrote in message
    news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...[color=blue]
    > 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[/color]
    forms[color=blue]
    > so that users don't have to continually type them!
    >
    > Thanks!
    >
    > Luis
    >
    >[/color]


    Comment

    • Greg Burns

      #3
      Re: Saving values in a text box?

      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" <anon@anon.co m> wrote in message
      news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...[color=blue]
      > 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[/color]
      forms[color=blue]
      > so that users don't have to continually type them!
      >
      > Thanks!
      >
      > Luis
      >
      >[/color]


      Comment

      • J. Alan Rueckgauer

        #4
        Re: Saving values in a text box?


        "Anon" <anon@anon.co m> wrote in message
        news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...[color=blue]
        > 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[/color]
        forms[color=blue]
        > so that users don't have to continually type them!
        >
        > Thanks!
        >
        > Luis
        >
        >[/color]

        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


        Comment

        • Ken Tucker [MVP]

          #5
          Re: Saving values in a text box?

          Hi,



          Ken
          ----------------------------------
          "Anon" <anon@anon.co m> wrote in message
          news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...[color=blue]
          > 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
          >
          >[/color]


          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: Saving values in a text box?

            * "Scott M." <s-mar@nospam.nosp am> scripsit:[color=blue]
            > Use server textboxes (System.Web.UI. WebControls.Tex tbox). They
            > automatically do what you want.[/color]

            In a /Windows Forms/?!

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

            Comment

            • Greg Burns

              #7
              Re: Saving values in a text box?

              It has not yet been determined... :^)

              "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
              news:2l5ohuF948 43U4@uni-berlin.de...[color=blue]
              > * "Scott M." <s-mar@nospam.nosp am> scripsit:[color=green]
              > > Use server textboxes (System.Web.UI. WebControls.Tex tbox). They
              > > automatically do what you want.[/color]
              >
              > In a /Windows Forms/?!
              >
              > --
              > Herfried K. Wagner [MVP]
              > <URL:http://dotnet.mvps.org/>[/color]


              Comment

              • Scott M.

                #8
                Re: Saving values in a text box?

                He didn't say Windows forms.


                "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                news:2l5ohuF948 43U4@uni-berlin.de...[color=blue]
                > * "Scott M." <s-mar@nospam.nosp am> scripsit:[color=green]
                > > Use server textboxes (System.Web.UI. WebControls.Tex tbox). They
                > > automatically do what you want.[/color]
                >
                > In a /Windows Forms/?!
                >
                > --
                > Herfried K. Wagner [MVP]
                > <URL:http://dotnet.mvps.org/>[/color]


                Comment

                • Dennis

                  #9
                  Re: Saving values in a text box?

                  I sure would be interested in the class that serializes to a user profile folder. My e-mail is dhining@houston .rr.com. Thanks.
                  --
                  Dennis in Houston


                  "Greg Burns" wrote:
                  [color=blue]
                  > 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" <anon@anon.co m> wrote in message
                  > news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...[color=green]
                  > > 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[/color]
                  > forms[color=green]
                  > > so that users don't have to continually type them!
                  > >
                  > > Thanks!
                  > >
                  > > Luis
                  > >
                  > >[/color]
                  >
                  >
                  >[/color]

                  Comment

                  • Scott M.

                    #10
                    Re: Saving values in a text box?

                    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" <Dennis@discuss ions.microsoft. com> wrote in message
                    news:60AD0075-6FD4-4B3C-9DFD-05A653C77021@mi crosoft.com...[color=blue]
                    > I sure would be interested in the class that serializes to a user profile[/color]
                    folder. My e-mail is dhining@houston .rr.com. Thanks.[color=blue]
                    > --
                    > Dennis in Houston
                    >
                    >
                    > "Greg Burns" wrote:
                    >[color=green]
                    > > 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" <anon@anon.co m> wrote in message
                    > > news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...[color=darkred]
                    > > > Hello All!
                    > > > I was wondering how I can go about saving the last string entered into[/color][/color][/color]
                    a[color=blue][color=green][color=darkred]
                    > > > textbox. I would like to save username or pwd info in textboxes in my[/color]
                    > > forms[color=darkred]
                    > > > so that users don't have to continually type them!
                    > > >
                    > > > Thanks!
                    > > >
                    > > > Luis
                    > > >
                    > > >[/color]
                    > >
                    > >
                    > >[/color][/color]


                    Comment

                    • Dennis

                      #11
                      Re: Saving values in a text box?

                      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:
                      [color=blue]
                      > 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" <Dennis@discuss ions.microsoft. com> wrote in message
                      > news:60AD0075-6FD4-4B3C-9DFD-05A653C77021@mi crosoft.com...[color=green]
                      > > I sure would be interested in the class that serializes to a user profile[/color]
                      > folder. My e-mail is dhining@houston .rr.com. Thanks.[color=green]
                      > > --
                      > > Dennis in Houston
                      > >
                      > >
                      > > "Greg Burns" wrote:
                      > >[color=darkred]
                      > > > 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" <anon@anon.co m> wrote in message
                      > > > news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...
                      > > > > Hello All!
                      > > > > I was wondering how I can go about saving the last string entered into[/color][/color]
                      > a[color=green][color=darkred]
                      > > > > 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
                      > > > >
                      > > > >
                      > > >
                      > > >
                      > > >[/color][/color]
                      >
                      >
                      >[/color]

                      Comment

                      • Greg Burns

                        #12
                        Re: Saving values in a text box?

                        Dennis, here is a link to that class I posted earlier



                        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" <Dennis@discuss ions.microsoft. com> wrote in message
                        news:37EB476A-3BF9-47E0-8D45-CBC53421AD34@mi crosoft.com...[color=blue]
                        > I am quick with the delete key! Also protected by every means know to man[/color]
                        so don't mind spam e-mail as i never read it, just delete it.[color=blue]
                        > --
                        > Dennis in Houston
                        >
                        >
                        > "Scott M." wrote:
                        >[color=green]
                        > > I hope that is an email alias, otherwise you can expect lots of[/color][/color]
                        additional[color=blue][color=green]
                        > > spam from the spambots that scour newsgroups looking for email[/color][/color]
                        addresses.[color=blue][color=green]
                        > >
                        > >
                        > > "Dennis" <Dennis@discuss ions.microsoft. com> wrote in message
                        > > news:60AD0075-6FD4-4B3C-9DFD-05A653C77021@mi crosoft.com...[color=darkred]
                        > > > I sure would be interested in the class that serializes to a user[/color][/color][/color]
                        profile[color=blue][color=green]
                        > > folder. My e-mail is dhining@houston .rr.com. Thanks.[color=darkred]
                        > > > --
                        > > > Dennis in Houston
                        > > >
                        > > >
                        > > > "Greg Burns" wrote:
                        > > >
                        > > > > Winform? Lots of ways to do this. I am creating a class that holds[/color][/color][/color]
                        the[color=blue][color=green][color=darkred]
                        > > > > username and serializing it to disk in the user profile folder.
                        > > > >
                        > > > > email me if you want the code
                        > > > >
                        > > > > Greg
                        > > > >
                        > > > > "Anon" <anon@anon.co m> wrote in message
                        > > > > news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...
                        > > > > > Hello All!
                        > > > > > I was wondering how I can go about saving the last string entered[/color][/color][/color]
                        into[color=blue][color=green]
                        > > a[color=darkred]
                        > > > > > textbox. I would like to save username or pwd info in textboxes in[/color][/color][/color]
                        my[color=blue][color=green][color=darkred]
                        > > > > forms
                        > > > > > so that users don't have to continually type them!
                        > > > > >
                        > > > > > Thanks!
                        > > > > >
                        > > > > > Luis
                        > > > > >
                        > > > > >
                        > > > >
                        > > > >
                        > > > >[/color]
                        > >
                        > >
                        > >[/color][/color]


                        Comment

                        • Greg Burns

                          #13
                          Re: Saving values in a text box?

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



                          Greg

                          "Greg Burns" <greg_burns@DON T_SPAM_ME_hotma il.com> wrote in message
                          news:upBzm6FcEH A.3580@TK2MSFTN GP11.phx.gbl...[color=blue]
                          > 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" <Dennis@discuss ions.microsoft. com> wrote in message
                          > news:37EB476A-3BF9-47E0-8D45-CBC53421AD34@mi crosoft.com...[color=green]
                          > > I am quick with the delete key! Also protected by every means know to[/color][/color]
                          man[color=blue]
                          > so don't mind spam e-mail as i never read it, just delete it.[color=green]
                          > > --
                          > > Dennis in Houston
                          > >
                          > >
                          > > "Scott M." wrote:
                          > >[color=darkred]
                          > > > I hope that is an email alias, otherwise you can expect lots of[/color][/color]
                          > additional[color=green][color=darkred]
                          > > > spam from the spambots that scour newsgroups looking for email[/color][/color]
                          > addresses.[color=green][color=darkred]
                          > > >
                          > > >
                          > > > "Dennis" <Dennis@discuss ions.microsoft. com> wrote in message
                          > > > news:60AD0075-6FD4-4B3C-9DFD-05A653C77021@mi crosoft.com...
                          > > > > I sure would be interested in the class that serializes to a user[/color][/color]
                          > profile[color=green][color=darkred]
                          > > > folder. My e-mail is dhining@houston .rr.com. Thanks.
                          > > > > --
                          > > > > Dennis in Houston
                          > > > >
                          > > > >
                          > > > > "Greg Burns" wrote:
                          > > > >
                          > > > > > Winform? Lots of ways to do this. I am creating a class that[/color][/color][/color]
                          holds[color=blue]
                          > the[color=green][color=darkred]
                          > > > > > username and serializing it to disk in the user profile folder.
                          > > > > >
                          > > > > > email me if you want the code
                          > > > > >
                          > > > > > Greg
                          > > > > >
                          > > > > > "Anon" <anon@anon.co m> wrote in message
                          > > > > > news:OLJljFRZEH A.644@tk2msftng p13.phx.gbl...
                          > > > > > > Hello All!
                          > > > > > > I was wondering how I can go about saving the last string[/color][/color][/color]
                          entered[color=blue]
                          > into[color=green][color=darkred]
                          > > > a
                          > > > > > > textbox. I would like to save username or pwd info in textboxes[/color][/color][/color]
                          in[color=blue]
                          > my[color=green][color=darkred]
                          > > > > > forms
                          > > > > > > so that users don't have to continually type them!
                          > > > > > >
                          > > > > > > Thanks!
                          > > > > > >
                          > > > > > > Luis
                          > > > > > >
                          > > > > > >
                          > > > > >
                          > > > > >
                          > > > > >
                          > > >
                          > > >
                          > > >[/color][/color]
                          >
                          >[/color]


                          Comment

                          Working...