Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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 } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Initializes a new instance of a ///class using the /// specified string. // 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 } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.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
- RegistryPermission.cs
- TextDocumentView.cs
- KnownTypeAttribute.cs
- InfoCardArgumentException.cs
- StrongNameUtility.cs
- EditorResources.cs
- SqlConnectionPoolGroupProviderInfo.cs
- MeasurementDCInfo.cs
- SByteStorage.cs
- DataListCommandEventArgs.cs
- Library.cs
- TextServicesDisplayAttribute.cs
- HttpListenerResponse.cs
- MaskedTextBoxTextEditor.cs
- InsufficientMemoryException.cs
- DataSourceViewSchemaConverter.cs
- EventItfInfo.cs
- Compiler.cs
- IssuerInformation.cs
- Substitution.cs
- MailDefinition.cs
- MimeParameterWriter.cs
- DateTimeConstantAttribute.cs
- InstanceData.cs
- TemplateControlParser.cs
- SetterTriggerConditionValueConverter.cs
- TableRowsCollectionEditor.cs
- StringAnimationBase.cs
- PriorityRange.cs
- SchemaImporterExtensionElement.cs
- MessageSecurityOverTcp.cs
- ConfigurationManager.cs
- XmlLanguageConverter.cs
- ISessionStateStore.cs
- DataControlPagerLinkButton.cs
- VectorKeyFrameCollection.cs
- PersonalizableTypeEntry.cs
- HtmlTableRow.cs
- ProfileGroupSettingsCollection.cs
- UnknownWrapper.cs
- CompilerHelpers.cs
- ToolStripSeparatorRenderEventArgs.cs
- FacetValues.cs
- HttpEncoder.cs
- CorrelationKey.cs
- Point3DCollectionConverter.cs
- MetafileHeaderWmf.cs
- TextRangeBase.cs
- Enum.cs
- TripleDESCryptoServiceProvider.cs
- AttributeXamlType.cs
- PageCatalogPartDesigner.cs
- SqlDuplicator.cs
- SelectedDatesCollection.cs
- WindowsGraphics2.cs
- LayoutEngine.cs
- SettingsPropertyValue.cs
- TagPrefixAttribute.cs
- SmiTypedGetterSetter.cs
- TraceInternal.cs
- ImageIndexConverter.cs
- Rect3DConverter.cs
- CharEntityEncoderFallback.cs
- XmlValidatingReaderImpl.cs
- DuplicateWaitObjectException.cs
- OleDbMetaDataFactory.cs
- DictionaryKeyPropertyAttribute.cs
- WebReferencesBuildProvider.cs
- ValidationRule.cs
- newitemfactory.cs
- CodePropertyReferenceExpression.cs
- WebPartMovingEventArgs.cs
- FontCollection.cs
- DefaultHttpHandler.cs
- ToolStripDropDownClosedEventArgs.cs
- WebBaseEventKeyComparer.cs
- MarginCollapsingState.cs
- SynchronousChannel.cs
- NonClientArea.cs
- IPAddress.cs
- RetrieveVirtualItemEventArgs.cs
- SQLInt64.cs
- ObsoleteAttribute.cs
- DataTableCollection.cs
- LinkDescriptor.cs
- ModuleBuilderData.cs
- CalendarDateRange.cs
- EntityDataSourceChangedEventArgs.cs
- XmlParserContext.cs
- FontUnitConverter.cs
- SimpleWebHandlerParser.cs
- Internal.cs
- IntranetCredentialPolicy.cs
- formatstringdialog.cs
- NativeBuffer.cs
- SendingRequestEventArgs.cs
- GeneralTransform3DCollection.cs
- SingleKeyFrameCollection.cs
- IDQuery.cs
- PreviewKeyDownEventArgs.cs