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
- ReferenceConverter.cs
- FontDialog.cs
- ServiceEndpointCollection.cs
- XmlEntity.cs
- EventKeyword.cs
- CanonicalizationDriver.cs
- WriteLineDesigner.xaml.cs
- MergeFailedEvent.cs
- ComNativeDescriptor.cs
- QuaternionAnimation.cs
- DataChangedEventManager.cs
- SqlReorderer.cs
- DataMemberConverter.cs
- DataGridViewUtilities.cs
- Axis.cs
- FontCollection.cs
- PropertyCollection.cs
- GradientBrush.cs
- IDispatchConstantAttribute.cs
- TaskbarItemInfo.cs
- WebPartHeaderCloseVerb.cs
- ImpersonationContext.cs
- MouseGestureConverter.cs
- NameValueConfigurationCollection.cs
- BatchServiceHost.cs
- CommentAction.cs
- IncrementalReadDecoders.cs
- PrintPreviewGraphics.cs
- CompiledQuery.cs
- GridViewCellAutomationPeer.cs
- TransactionScopeDesigner.cs
- XslException.cs
- ListControlDataBindingHandler.cs
- IntPtr.cs
- AuthenticationModuleElementCollection.cs
- ObjectIDGenerator.cs
- TableRow.cs
- Int32.cs
- WCFBuildProvider.cs
- QueryExpr.cs
- EncryptedData.cs
- Font.cs
- ContentType.cs
- baseshape.cs
- TimersDescriptionAttribute.cs
- BoundPropertyEntry.cs
- XamlWrapperReaders.cs
- Contracts.cs
- HtmlLink.cs
- DelayedRegex.cs
- StreamGeometryContext.cs
- basenumberconverter.cs
- TextServicesManager.cs
- BindValidationContext.cs
- TimeIntervalCollection.cs
- _SingleItemRequestCache.cs
- CodeCatchClause.cs
- PathGradientBrush.cs
- ReaderWriterLock.cs
- PseudoWebRequest.cs
- XPathDocumentNavigator.cs
- SqlFileStream.cs
- NativeMethods.cs
- PropertyGeneratedEventArgs.cs
- DataGridViewCheckBoxCell.cs
- SharedPersonalizationStateInfo.cs
- XmlTextAttribute.cs
- InputLanguageEventArgs.cs
- PeerUnsafeNativeCryptMethods.cs
- ProfileProvider.cs
- OperationFormatter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ModuleBuilderData.cs
- MediaElementAutomationPeer.cs
- DesignerVerb.cs
- TreeNode.cs
- BreadCrumbTextConverter.cs
- TextEditorCharacters.cs
- TimerEventSubscription.cs
- BinHexEncoder.cs
- InstallerTypeAttribute.cs
- Thumb.cs
- ToolStripComboBox.cs
- BrushMappingModeValidation.cs
- FileLogRecord.cs
- VerbConverter.cs
- EventRecord.cs
- NavigationEventArgs.cs
- MemberRelationshipService.cs
- MaskedTextProvider.cs
- DoubleIndependentAnimationStorage.cs
- ErrorProvider.cs
- LayoutEvent.cs
- FilterableAttribute.cs
- RecipientInfo.cs
- XmlValueConverter.cs
- DropDownButton.cs
- XmlAnyElementAttribute.cs
- UserNameSecurityTokenProvider.cs
- DynamicAttribute.cs