Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlInputPassword.cs / 2 / 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.
//------------------------------------------------------------------------------
//
// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemas.cs
- FormatConvertedBitmap.cs
- ArrayHelper.cs
- AdapterUtil.cs
- HttpProfileBase.cs
- NetCodeGroup.cs
- HtmlShimManager.cs
- Lookup.cs
- ComponentGlyph.cs
- ReferentialConstraint.cs
- HijriCalendar.cs
- QilPatternVisitor.cs
- StorageSetMapping.cs
- ProxyHelper.cs
- HtmlMobileTextWriter.cs
- SendingRequestEventArgs.cs
- IsolatedStoragePermission.cs
- DockingAttribute.cs
- InplaceBitmapMetadataWriter.cs
- ClrProviderManifest.cs
- DataRow.cs
- DeviceContext.cs
- BamlLocalizableResource.cs
- BaseTreeIterator.cs
- RecognitionResult.cs
- WpfMemberInvoker.cs
- DataGridItem.cs
- EnumerableWrapperWeakToStrong.cs
- EventDescriptor.cs
- ActiveXHost.cs
- HttpCachePolicy.cs
- KeySpline.cs
- SchemaInfo.cs
- DomainConstraint.cs
- AnimationTimeline.cs
- SetStoryboardSpeedRatio.cs
- StandardOleMarshalObject.cs
- StreamInfo.cs
- BamlTreeMap.cs
- ImportCatalogPart.cs
- LocatorManager.cs
- EntityDataSourceMemberPath.cs
- ZoneLinkButton.cs
- HttpListenerException.cs
- FormViewDeleteEventArgs.cs
- BinaryFormatterWriter.cs
- BamlRecordHelper.cs
- ToolStripItemRenderEventArgs.cs
- WebPart.cs
- DragDrop.cs
- DbConnectionStringCommon.cs
- TextEndOfSegment.cs
- DeobfuscatingStream.cs
- HostProtectionPermission.cs
- HandleCollector.cs
- CustomValidator.cs
- TypedTableBase.cs
- EventLogPermission.cs
- UrlMappingCollection.cs
- XmlSchemaDatatype.cs
- Pen.cs
- PerspectiveCamera.cs
- BufferModesCollection.cs
- HeaderLabel.cs
- BasicHttpMessageSecurityElement.cs
- ContainerParagraph.cs
- EntityViewContainer.cs
- InheritanceContextChangedEventManager.cs
- TagMapCollection.cs
- Model3DCollection.cs
- Int16.cs
- DataTableMappingCollection.cs
- TypeConvertions.cs
- DataFormat.cs
- ComponentManagerBroker.cs
- ButtonBase.cs
- UrlAuthFailedErrorFormatter.cs
- DataTableCollection.cs
- Converter.cs
- DataGridColumnReorderingEventArgs.cs
- TableDetailsCollection.cs
- PolicyVersionConverter.cs
- Set.cs
- IndexOutOfRangeException.cs
- BindingsCollection.cs
- HttpBrowserCapabilitiesWrapper.cs
- CodeTypeDelegate.cs
- ReachDocumentSequenceSerializer.cs
- QueueProcessor.cs
- SessionParameter.cs
- SourceFileBuildProvider.cs
- TdsParserSessionPool.cs
- LiteralControl.cs
- PageHandlerFactory.cs
- Size.cs
- FixedTextBuilder.cs
- AuthenticationException.cs
- ThousandthOfEmRealPoints.cs
- ExtentKey.cs
- StyleSelector.cs