1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
//------------------------------------------------------------------------------
// <copyright file="HtmlInputPassword.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
/*
* HtmlInputPassword.cs
*
* Copyright (c) 2000 Microsoft Corporation
*/
namespace System.Web.UI.HtmlControls {
using System.ComponentModel;
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Globalization;
using System.Web;
using System.Web.UI;
using System.Security.Permissions;
/// <devdoc>
/// <para>
/// The <see langword='HtmlInputPassword'/>
/// class defines the methods, properties, and events for the HtmlInputPassword server
/// control. This class allows programmatic access to the HTML <input type=
/// text>
/// and <input type=
/// password> elements on the server.
/// </para>
/// </devdoc>
[
DefaultEvent("ServerChange"),
ValidationProperty("Value"),
SupportsEventValidation,
]
public class HtmlInputPassword : HtmlInputText, IPostBackDataHandler {
private static readonly object EventServerChange = new object();
/*
* Creates an intrinsic Html INPUT type=password control.
*/
public HtmlInputPassword() : base("password") {
}
protected override void RenderAttributes(HtmlTextWriter writer) {
// Remove value from viewstate for input type=password
ViewState.Remove("value");
base.RenderAttributes(writer);
}
}
}
|