Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / Adapters / HideDisabledControlAdapter.cs / 1305376 / HideDisabledControlAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.Adapters { using System; using System.Web; using System.Web.UI; using System.Web.UI.Adapters; // Used for controls which use their default rendering, but are hidden when disabled. public class HideDisabledControlAdapter : WebControlAdapter { // Returns without doing anything if the control is disabled, otherwise, uses the default rendering. protected internal override void Render(HtmlTextWriter writer) { if (Control.Enabled == false) { return; } Control.Render(writer); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.Adapters { using System; using System.Web; using System.Web.UI; using System.Web.UI.Adapters; // Used for controls which use their default rendering, but are hidden when disabled. public class HideDisabledControlAdapter : WebControlAdapter { // Returns without doing anything if the control is disabled, otherwise, uses the default rendering. protected internal override void Render(HtmlTextWriter writer) { if (Control.Enabled == false) { return; } Control.Render(writer); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MarkupObject.cs
- RequiredArgumentAttribute.cs
- errorpatternmatcher.cs
- CommandHelper.cs
- SerializerDescriptor.cs
- WebPartDescription.cs
- Win32KeyboardDevice.cs
- CellTreeSimplifier.cs
- DesignRelation.cs
- NavigationService.cs
- SchemaImporterExtensionElement.cs
- CaseInsensitiveHashCodeProvider.cs
- BigInt.cs
- ResourceBinder.cs
- IPGlobalProperties.cs
- ValueTypeFixupInfo.cs
- ServiceOperationInfoTypeConverter.cs
- SelectedCellsCollection.cs
- MessagePropertyAttribute.cs
- cookiecontainer.cs
- UnsafeNativeMethods.cs
- BamlLocalizer.cs
- DispatcherOperation.cs
- Select.cs
- PeerInvitationResponse.cs
- RSAProtectedConfigurationProvider.cs
- __FastResourceComparer.cs
- SqlDataSourceStatusEventArgs.cs
- CrossContextChannel.cs
- PrintDialogException.cs
- UIElement3D.cs
- AuthenticateEventArgs.cs
- PassportPrincipal.cs
- ListViewUpdateEventArgs.cs
- PropertyValidationContext.cs
- InputProcessorProfiles.cs
- SqlError.cs
- StyleCollection.cs
- DiscreteKeyFrames.cs
- CommandHelpers.cs
- ChangePassword.cs
- CodeMemberProperty.cs
- ChangeBlockUndoRecord.cs
- DataGrid.cs
- AlphaSortedEnumConverter.cs
- FindCriteria11.cs
- KeyedPriorityQueue.cs
- NativeMethodsCLR.cs
- Range.cs
- WebResourceAttribute.cs
- PolicyValidator.cs
- MenuTracker.cs
- SelectorItemAutomationPeer.cs
- SurrogateChar.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- EnumValAlphaComparer.cs
- SqlUtils.cs
- LingerOption.cs
- HelpHtmlBuilder.cs
- EraserBehavior.cs
- DocumentViewer.cs
- BitmapEffectInputData.cs
- _UriTypeConverter.cs
- XamlToRtfWriter.cs
- OdbcConnectionOpen.cs
- DrawingAttributes.cs
- UnsafeNativeMethods.cs
- IncrementalReadDecoders.cs
- BaseValidator.cs
- StatusBarDesigner.cs
- DispatcherEventArgs.cs
- Delay.cs
- CookieParameter.cs
- DirtyTextRange.cs
- SelectionHighlightInfo.cs
- DecimalKeyFrameCollection.cs
- Pens.cs
- ProcessModelInfo.cs
- DropDownHolder.cs
- SqlInfoMessageEvent.cs
- MediaCommands.cs
- SamlAttribute.cs
- IOThreadScheduler.cs
- SerializationInfoEnumerator.cs
- InnerItemCollectionView.cs
- Vector3D.cs
- ManifestSignedXml.cs
- SignatureHelper.cs
- SimpleWebHandlerParser.cs
- ExpressionEditorAttribute.cs
- XmlQualifiedName.cs
- xmlfixedPageInfo.cs
- _NestedSingleAsyncResult.cs
- OdbcParameterCollection.cs
- TextWriter.cs
- BatchStream.cs
- SafeRightsManagementSessionHandle.cs
- StickyNoteAnnotations.cs
- StringFormat.cs
- SqlErrorCollection.cs