Login.Password Property
Gets the password entered by the user.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System.StringThe password entered by the user. The default is a null reference (Nothing in Visual Basic).
The Password property contains the password entered by the user. The password is in clear text. For more information, see Basic Security Practices for Web Applications.
Note: |
|---|
If you manipulate the UserName or Password properties programmatically, it is important to do so at the correct time during the page life cycle. The values of UserName and Password are not available during the Page_Load phase, but are during the Pre_Render phase. |
Login control properties represented by text boxes, such as UserName and Password, are accessible during all phases of the page life cycle. The control will pick up any changes made by the end user by means of the TextChanged event triggered by the textboxes.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: