HtmlInputPassword.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlInputPassword.cs / 1 / HtmlInputPassword.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

/* 
 * 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;

 
/// 
///     
///       The  
///       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.
///     
/// 
    [ 
    DefaultEvent("ServerChange"), 
    ValidationProperty("Value"),
    SupportsEventValidation, 
    ]
    [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    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);
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

/* 
 * 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;

 
/// 
///     
///       The  
///       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.
///     
/// 
    [ 
    DefaultEvent("ServerChange"), 
    ValidationProperty("Value"),
    SupportsEventValidation, 
    ]
    [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    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);
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK