do not attempt to assign a value to a TextBox of type password!In ASP. NET, do not attempt to assign a value to a TextBox control of type Password! Neither in design nor at run time.
The reason for guessing is that the password type of TextBox control fundamentally does not have the Text property of the Set method, only get!!
Likewise, the input control in HTML, if set to ruanat= "Server", is the same as the input control of the password type. It is not allowed to set its value either at design or at run time. Workaround: txtpassword.attributes["value"] = "123"; preface
Generally as long as there are members, the user mechanism of the site or forum in the login will have such a check box--[remember my name | Two weeks no longer login | Save my information on this computer ], say more, achieve almost, this article has done a simple example and comes with a C # Cookie helper class CookiesHelper.cs and implementation code snippet, hope to be helpful for beginners:)
Featured Articles
1. Lin Shinliang Index.dat File analysis More deeply analyze the deposit of cookies in Index.dat
2. Msdn--asp.net Cookie Overview A comprehensive and detailed introduction of cookies