Code:
/ DotNET / DotNET / 8.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
- PrintEvent.cs
- AddInStore.cs
- ProfileSettings.cs
- MaskedTextBoxDesignerActionList.cs
- CatchDesigner.xaml.cs
- AxisAngleRotation3D.cs
- DataPagerFieldItem.cs
- ConfigXmlText.cs
- AdapterDictionary.cs
- HttpProfileBase.cs
- RealProxy.cs
- NeutralResourcesLanguageAttribute.cs
- ToolStripEditorManager.cs
- NetNamedPipeBindingElement.cs
- CornerRadius.cs
- COAUTHIDENTITY.cs
- LabelExpression.cs
- Command.cs
- BaseEntityWrapper.cs
- FontStyles.cs
- ClientEventManager.cs
- RuntimeConfigurationRecord.cs
- Scene3D.cs
- DesignerActionItemCollection.cs
- QilBinary.cs
- ResourcesGenerator.cs
- ValidatingReaderNodeData.cs
- WrapperSecurityCommunicationObject.cs
- DependencySource.cs
- MimeMapping.cs
- LabelAutomationPeer.cs
- Deflater.cs
- SchemaDeclBase.cs
- ListBindableAttribute.cs
- ObjectConverter.cs
- AutomationProperty.cs
- DataColumnMappingCollection.cs
- HtmlWindow.cs
- LinearGradientBrush.cs
- UIntPtr.cs
- GrammarBuilderBase.cs
- WebPartAuthorizationEventArgs.cs
- StructuredTypeEmitter.cs
- DeflateEmulationStream.cs
- AttributeQuery.cs
- ControlValuePropertyAttribute.cs
- DateRangeEvent.cs
- _NativeSSPI.cs
- Setter.cs
- MasterPageParser.cs
- IList.cs
- ConfigXmlSignificantWhitespace.cs
- WebPartRestoreVerb.cs
- COM2EnumConverter.cs
- CryptoApi.cs
- TemplatePropertyEntry.cs
- odbcmetadatacolumnnames.cs
- LineGeometry.cs
- PlainXmlSerializer.cs
- CallContext.cs
- XmlCharType.cs
- DocumentReferenceCollection.cs
- MappingItemCollection.cs
- PixelFormat.cs
- CqlLexerHelpers.cs
- ListControl.cs
- LineSegment.cs
- StrokeSerializer.cs
- IRCollection.cs
- DoWhileDesigner.xaml.cs
- VectorAnimationUsingKeyFrames.cs
- VectorAnimation.cs
- ForceCopyBuildProvider.cs
- DBCommand.cs
- RawStylusInputCustomDataList.cs
- HtmlTableRow.cs
- AttributeQuery.cs
- UInt32Converter.cs
- VariableAction.cs
- PtsPage.cs
- TypeBrowser.xaml.cs
- IntSecurity.cs
- DrawingContextWalker.cs
- XmlWrappingReader.cs
- RefType.cs
- CalloutQueueItem.cs
- MenuStrip.cs
- CustomAttribute.cs
- AbstractSvcMapFileLoader.cs
- DoubleLinkList.cs
- compensatingcollection.cs
- QfeChecker.cs
- Label.cs
- CopyOnWriteList.cs
- SqlNodeAnnotations.cs
- XmlIlTypeHelper.cs
- ObjectAnimationUsingKeyFrames.cs
- ToolStripSettings.cs
- CngUIPolicy.cs
- DataError.cs