Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CompModSwitches.cs
- WebPartTransformer.cs
- UInt64Converter.cs
- DeferredTextReference.cs
- Calendar.cs
- ImageClickEventArgs.cs
- UIHelper.cs
- EntityCommandCompilationException.cs
- SpecialFolderEnumConverter.cs
- PermissionRequestEvidence.cs
- util.cs
- EnterpriseServicesHelper.cs
- EntityDataReader.cs
- Binding.cs
- MenuCommand.cs
- DataBindingCollection.cs
- BindingCollection.cs
- BamlRecordReader.cs
- SrgsDocument.cs
- Comparer.cs
- XsdBuilder.cs
- Byte.cs
- XpsThumbnail.cs
- RegexNode.cs
- InteropBitmapSource.cs
- OperandQuery.cs
- ToolBarTray.cs
- VersionedStream.cs
- PeerInputChannel.cs
- LazyTextWriterCreator.cs
- XmlNode.cs
- NotifyParentPropertyAttribute.cs
- Native.cs
- SubqueryRules.cs
- StructureChangedEventArgs.cs
- AssemblyHash.cs
- CryptoConfig.cs
- HtmlInputReset.cs
- Oid.cs
- webclient.cs
- SystemIPv4InterfaceProperties.cs
- BeginStoryboard.cs
- SplashScreenNativeMethods.cs
- EntityDataSourceMemberPath.cs
- ControlLocalizer.cs
- DateTimePicker.cs
- HttpProtocolImporter.cs
- Touch.cs
- PathGradientBrush.cs
- TableHeaderCell.cs
- FastEncoderStatics.cs
- MetadataItemEmitter.cs
- SafeNativeMethods.cs
- ProfileSettings.cs
- sqlpipe.cs
- ChangeConflicts.cs
- StreamProxy.cs
- ScriptServiceAttribute.cs
- TraceFilter.cs
- RowBinding.cs
- BuildProviderAppliesToAttribute.cs
- LocatorPart.cs
- RuntimeConfigurationRecord.cs
- VersionedStreamOwner.cs
- MimeWriter.cs
- ButtonChrome.cs
- LineProperties.cs
- ClientTarget.cs
- CodeCatchClause.cs
- Menu.cs
- WorkflowInlining.cs
- ClientRuntimeConfig.cs
- ImageInfo.cs
- WebServiceEndpoint.cs
- NetworkInformationException.cs
- MailSettingsSection.cs
- TimeoutHelper.cs
- NumberFormatter.cs
- CodeDomConfigurationHandler.cs
- RuntimeComponentFilter.cs
- TabControl.cs
- DbProviderServices.cs
- CancelEventArgs.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- QilBinary.cs
- WebResponse.cs
- DocumentViewerAutomationPeer.cs
- BinaryReader.cs
- WebPartTransformerAttribute.cs
- BlurBitmapEffect.cs
- DataGridViewTopRowAccessibleObject.cs
- ZoomPercentageConverter.cs
- SystemUnicastIPAddressInformation.cs
- SqlXmlStorage.cs
- DataRowComparer.cs
- SudsParser.cs
- FrameworkEventSource.cs
- Panel.cs
- HwndHost.cs
- _Events.cs