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
- SocketPermission.cs
- CheckBoxList.cs
- AnchoredBlock.cs
- NavigationProperty.cs
- PKCS1MaskGenerationMethod.cs
- SoapObjectReader.cs
- StateItem.cs
- ListControlStringCollectionEditor.cs
- LineVisual.cs
- ScrollItemPatternIdentifiers.cs
- ChtmlLinkAdapter.cs
- InputLanguageManager.cs
- UnsafeNetInfoNativeMethods.cs
- DataListItem.cs
- BamlWriter.cs
- COAUTHINFO.cs
- HandoffBehavior.cs
- PropertyChangedEventArgs.cs
- ContentOperations.cs
- NativeMethods.cs
- XmlIlGenerator.cs
- ImageClickEventArgs.cs
- SpecialNameAttribute.cs
- MatrixValueSerializer.cs
- Pointer.cs
- ConfigXmlWhitespace.cs
- XmlDictionaryWriter.cs
- DataGridViewSelectedColumnCollection.cs
- D3DImage.cs
- SqlClientFactory.cs
- CatalogZoneBase.cs
- RadioButtonBaseAdapter.cs
- ContextStaticAttribute.cs
- XhtmlBasicCalendarAdapter.cs
- dataSvcMapFileLoader.cs
- DescendantOverDescendantQuery.cs
- HtmlInputControl.cs
- CreateParams.cs
- DescendantOverDescendantQuery.cs
- GACIdentityPermission.cs
- DesignerSelectionListAdapter.cs
- AliasGenerator.cs
- StringBuilder.cs
- EmptyArray.cs
- SchemaSetCompiler.cs
- HostedTransportConfigurationManager.cs
- ISO2022Encoding.cs
- listitem.cs
- DirtyTextRange.cs
- Vector3DIndependentAnimationStorage.cs
- SQLSingle.cs
- BoolExpression.cs
- XmlQueryStaticData.cs
- XmlSequenceWriter.cs
- ToolStripDropDownButton.cs
- Label.cs
- ScriptReferenceBase.cs
- MediaPlayerState.cs
- WSFederationHttpSecurityMode.cs
- TreeNodeConverter.cs
- Calendar.cs
- DataControlLinkButton.cs
- Deserializer.cs
- WebPartConnection.cs
- HijriCalendar.cs
- ScrollableControl.cs
- SelectionGlyphBase.cs
- WebPartDescription.cs
- Vector3D.cs
- CompleteWizardStep.cs
- NegotiationTokenAuthenticator.cs
- ResourceDisplayNameAttribute.cs
- UnmanagedMemoryStreamWrapper.cs
- DependencyObjectValidator.cs
- EntityDataSourceEntitySetNameItem.cs
- Int16KeyFrameCollection.cs
- GenericUriParser.cs
- MarkedHighlightComponent.cs
- PublisherIdentityPermission.cs
- MessageDecoder.cs
- XmlSchemaSimpleContentRestriction.cs
- IndependentlyAnimatedPropertyMetadata.cs
- CancellationScope.cs
- XmlNotation.cs
- TextRange.cs
- AnimationTimeline.cs
- CodeDirectoryCompiler.cs
- EntityStoreSchemaGenerator.cs
- XmlSchemaDocumentation.cs
- InputGestureCollection.cs
- SQLSingle.cs
- DoubleCollectionConverter.cs
- ClientSponsor.cs
- FacetValues.cs
- DeviceSpecificDialogCachedState.cs
- MonthCalendarDesigner.cs
- HtmlButton.cs
- _NativeSSPI.cs
- QueryStatement.cs
- ISAPIApplicationHost.cs