﻿// Decompiled with JetBrains decompiler
// Type: System.Web.UI.HtmlControls.HtmlInputPassword
// Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 7E68A73E-4066-4F24-AB0A-F147209F50EC
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Web.dll

using System.ComponentModel;
using System.Web.UI;

namespace System.Web.UI.HtmlControls
{
  /// <summary>
  /// Allows programmatic access to the HTML &lt;input type= password&gt; element on the server.
  /// </summary>
  [DefaultEvent("ServerChange")]
  [SupportsEventValidation]
  [ValidationProperty("Value")]
  public class HtmlInputPassword : HtmlInputText, IPostBackDataHandler
  {
    private static readonly object EventServerChange = new object();

    /// <summary>
    /// Initializes a new instance of the <see cref="T:System.Web.UI.HtmlControls.HtmlInputPassword"/> class using default values.
    /// </summary>
    public HtmlInputPassword()
      : base("password")
    {
    }

    /// <summary>
    /// Renders the attributes of the <see cref="T:System.Web.UI.HtmlControls.HtmlInputPassword"/> control to the specified <see cref="T:System.Web.UI.HtmlTextWriter"/> object.
    /// </summary>
    /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter"/> that receives the rendered content.</param>
    protected override void RenderAttributes(HtmlTextWriter writer)
    {
      this.ViewState.Remove("value");
      base.RenderAttributes(writer);
    }
  }
}
