Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlInputReset.cs / 1 / HtmlInputReset.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * HtmlInputReset.cs * * Copyright (c) 2000 Microsoft Corporation */ using System.ComponentModel; using System.Security.Permissions; namespace System.Web.UI.HtmlControls { // VSWhidbey 402612 and linked bugs // We had a design change to map to a specific Html // Input Control. However, we have to provide backward compat. that would // not break older app (e.g. Everett generate HtmlInputButton class in code // behind. So we need to create the new class inheriting from HtmlInputButton // but overriding the corresponding properties and event to suppress them in // designer (as they should not be in the first place, but it was not fixed // in V1 unfortunately) [DefaultEvent("")] [SupportsEventValidation] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class HtmlInputReset : HtmlInputButton { /* * Creates an intrinsic Html INPUT type=reset control. */ ////// public HtmlInputReset() : base("reset") { } /* * Creates an intrinsic Html INPUT type=reset control. */ ///Initializes a new instance of a ///class using /// default values. /// public HtmlInputReset(string type) : base(type) { } [ Browsable(false), EditorBrowsable(EditorBrowsableState.Never) ] public override bool CausesValidation { get { return base.CausesValidation; } set { base.CausesValidation = value; } } [ Browsable(false), EditorBrowsable(EditorBrowsableState.Never) ] public override string ValidationGroup { get { return base.ValidationGroup; } set { base.ValidationGroup = value; } } [ Browsable(false), EditorBrowsable(EditorBrowsableState.Never) ] public new event EventHandler ServerClick { add { base.ServerClick += value; } remove { base.ServerClick -= value; } } internal override void RenderAttributesInternal(HtmlTextWriter writer) { // We didn't generate any server event for reset button in older version } } }Initializes a new instance of a ///class using the /// specified string.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ServiceObjectContainer.cs
- DataObjectMethodAttribute.cs
- SourceFilter.cs
- remotingproxy.cs
- ValueTypeFixupInfo.cs
- RelationalExpressions.cs
- Quaternion.cs
- Viewport3DAutomationPeer.cs
- ApplicationServicesHostFactory.cs
- KeysConverter.cs
- CommonGetThemePartSize.cs
- AlternateViewCollection.cs
- StaticContext.cs
- MouseEvent.cs
- ExtendedPropertyDescriptor.cs
- SingleSelectRootGridEntry.cs
- SiteMapDataSourceView.cs
- CodeGenerator.cs
- WebPartEditorCancelVerb.cs
- ClientSideQueueItem.cs
- SecurityIdentifierElement.cs
- MouseEvent.cs
- AssertFilter.cs
- MimeFormatExtensions.cs
- IResourceProvider.cs
- ImageList.cs
- ObjectNavigationPropertyMapping.cs
- HttpProfileBase.cs
- FormView.cs
- LockCookie.cs
- ViewgenContext.cs
- Quad.cs
- PackagePartCollection.cs
- ContentWrapperAttribute.cs
- Int64AnimationBase.cs
- ResizeGrip.cs
- DataRecordInfo.cs
- SqlDataSourceSelectingEventArgs.cs
- WebUtility.cs
- RadioButton.cs
- TypeToken.cs
- TextWriterEngine.cs
- Paragraph.cs
- KeyValueInternalCollection.cs
- RenamedEventArgs.cs
- ItemMap.cs
- SafeProcessHandle.cs
- OutOfMemoryException.cs
- ConfigurationSchemaErrors.cs
- ConnectorSelectionGlyph.cs
- InternalControlCollection.cs
- RelatedEnd.cs
- InputLanguageProfileNotifySink.cs
- RegionInfo.cs
- WebPartAddingEventArgs.cs
- BaseProcessor.cs
- DataGridCellEditEndingEventArgs.cs
- RightsManagementEncryptedStream.cs
- AddInBase.cs
- COM2ColorConverter.cs
- RequestResizeEvent.cs
- AnimationTimeline.cs
- ApplicationSecurityManager.cs
- XPathParser.cs
- Tile.cs
- PathSegment.cs
- NCryptSafeHandles.cs
- Function.cs
- RawAppCommandInputReport.cs
- XmlSchemaSimpleTypeUnion.cs
- CallId.cs
- OdbcDataAdapter.cs
- SchemaCreator.cs
- XmlUrlResolver.cs
- VerificationAttribute.cs
- WindowsSlider.cs
- WeakRefEnumerator.cs
- SafeSystemMetrics.cs
- DetailsViewUpdatedEventArgs.cs
- _LocalDataStoreMgr.cs
- SqlBuffer.cs
- Utils.cs
- CodeThrowExceptionStatement.cs
- SmtpNtlmAuthenticationModule.cs
- DocumentStream.cs
- RoleManagerEventArgs.cs
- COM2TypeInfoProcessor.cs
- SQLBytesStorage.cs
- EnvelopeVersion.cs
- XamlSerializer.cs
- safemediahandle.cs
- SafeArchiveContext.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TemplateControlCodeDomTreeGenerator.cs
- ExpressionParser.cs
- WebZone.cs
- OleDbErrorCollection.cs
- HebrewCalendar.cs
- CapabilitiesAssignment.cs