[CLOSED] Browser remember-functionality for loginpage

  1. #1

    [CLOSED] Browser remember-functionality for loginpage


    on most websites, if you login, the browser asks you if the password should be saved.

    I am doing a extnet login page right now, and I am looking for a way to do that.

    I have searched a bit around, and some people do it by saving username and password in a cookie, which is unsafe imho.

    I am not sure how the browser decides whether to show the "save password" box or not.

    I have found this:

    to make the browser ask to store the password, user name and password boxes must be in a form and that form must be actually submitted. The submit button could return false from the onclick handler (so the submit does not actually happen).

    to make the browser restore the previously stored password, the input boxes have to exist in the main HTML form and not be created through javascript dynamically. The form can be created with display:none.
    Any idea how I can do that with extnet textboxes?
    Last edited by Daniil; Feb 04, 2014 at 11:35 AM. Reason: [CLOSED]
  2. #2
    Hi @blueworld,

    Here is an example:
  3. #3
    Thank you Daniil,

    regarding your example, what would be the right code-behind event to do the login? Currently I have a click listener on the login button that calls a DirectMethod, but somehow it is not executed on the first click.
  4. #4
    A DirectMethod cannot be used at the same time with submitting a form. It means a hard PostBack, i.e. page reload.

    You have to put the logging code into the Page_Load.

Similar Threads

  1. [CLOSED] Remember user column settings
    By marco.morreale in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 25, 2013, 3:18 PM
  2. [CLOSED] Remember grid view settings for the user
    By jesperhp in forum 1.x Legacy Premium Help
    Replies: 19
    Last Post: Aug 29, 2013, 5:11 AM
  3. MultiCombo that Remember Selection through page
    By MichaelSogos in forum Examples and Extras
    Replies: 1
    Last Post: Sep 21, 2011, 3:50 PM
  4. [CLOSED] Remember User name and Password
    By vedagopal2004 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 12, 2011, 1:52 PM
  5. Replies: 7
    Last Post: Jun 09, 2008, 7:45 PM

Tags for this Thread

Posting Permissions