Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / Adapters / HideDisabledControlAdapter.cs / 1 / HideDisabledControlAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.Adapters { using System; using System.Security.Permissions; 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. [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Knowncolors.cs
- ConfigurationPropertyAttribute.cs
- ProfileSettingsCollection.cs
- IriParsingElement.cs
- connectionpool.cs
- ExplicitDiscriminatorMap.cs
- HttpApplicationFactory.cs
- EncoderFallback.cs
- UdpReplyToBehavior.cs
- WorkflowOperationBehavior.cs
- Binding.cs
- Win32Exception.cs
- TcpTransportBindingElement.cs
- HttpWebRequestElement.cs
- WebPartEditorCancelVerb.cs
- DebuggerService.cs
- NativeMethods.cs
- BitmapEffectRenderDataResource.cs
- RowParagraph.cs
- TargetControlTypeCache.cs
- ThreadAbortException.cs
- sqlcontext.cs
- ImmutableAssemblyCacheEntry.cs
- CodeCatchClauseCollection.cs
- SpStreamWrapper.cs
- FontEmbeddingManager.cs
- COM2Properties.cs
- XPathNode.cs
- Version.cs
- DefaultParameterValueAttribute.cs
- WebServiceParameterData.cs
- PolicyStatement.cs
- UInt32Converter.cs
- AlternateView.cs
- CodeGroup.cs
- CollectionViewGroupInternal.cs
- ImageInfo.cs
- Sorting.cs
- ReadWriteSpinLock.cs
- ReadOnlyCollectionBase.cs
- SqlDataSourceCommandEventArgs.cs
- TransactedReceiveScope.cs
- XmlSchemaExporter.cs
- WorkItem.cs
- SecurityContextTokenValidationException.cs
- HasActivatableWorkflowEvent.cs
- CollectionConverter.cs
- TrackBarRenderer.cs
- columnmapkeybuilder.cs
- RowSpanVector.cs
- DataGridTable.cs
- Help.cs
- SafeEventHandle.cs
- OptimizerPatterns.cs
- Preprocessor.cs
- RijndaelManaged.cs
- SchemaObjectWriter.cs
- PrintingPermissionAttribute.cs
- VideoDrawing.cs
- Int64Converter.cs
- InheritablePropertyChangeInfo.cs
- XmlDomTextWriter.cs
- WebPartDeleteVerb.cs
- RoutedEventHandlerInfo.cs
- RC2.cs
- Transform3DCollection.cs
- BitFlagsGenerator.cs
- DisplayInformation.cs
- EndPoint.cs
- HyperLink.cs
- ClientUrlResolverWrapper.cs
- ProvidersHelper.cs
- ComPlusTypeLoader.cs
- CompilerTypeWithParams.cs
- TaiwanLunisolarCalendar.cs
- PropertyValueEditor.cs
- _NestedMultipleAsyncResult.cs
- IProvider.cs
- ProgressBarAutomationPeer.cs
- ListView.cs
- RolePrincipal.cs
- DataBoundControl.cs
- SingleAnimationBase.cs
- ImpersonationContext.cs
- TextCollapsingProperties.cs
- Send.cs
- HtmlControl.cs
- HashSetEqualityComparer.cs
- XmlUtf8RawTextWriter.cs
- Validator.cs
- GenericTypeParameterBuilder.cs
- SimpleRecyclingCache.cs
- ListViewHitTestInfo.cs
- StructuralType.cs
- DigitShape.cs
- StatusBarPanel.cs
- HelloOperationAsyncResult.cs
- ActivationWorker.cs
- MetaModel.cs
- BlockUIContainer.cs