Hi,
That thread is a bit outdated and there is a much simpler approach. I've checked some
forums and this is a general .NET issue/behavior pattern. If you set the textbox TextMode to Password, it will automatically discard your value. You need to either change the TextMode to e.g. SingleLine, or you can add the following line of code to the Page_Load method in the file ~\CMSModules\Membership\FormControls\Passwords\Password.ascx.cs:
txtPassword.Attributes["value"] = txtPassword.Text;
This modification was tested with the Password form control.
Best regards,
Boris Pocatko