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
- XmlSchemaSimpleContentRestriction.cs
- CodeSubDirectoriesCollection.cs
- PersonalizationAdministration.cs
- WorkflowWebService.cs
- LocalFileSettingsProvider.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TTSVoice.cs
- DataControlLinkButton.cs
- SelectedDatesCollection.cs
- CorrelationKeyCalculator.cs
- HtmlElementCollection.cs
- TokenizerHelper.cs
- FormattedText.cs
- XmlSchemaSimpleContentRestriction.cs
- ValuePattern.cs
- ExpressionBindingCollection.cs
- HttpCachePolicy.cs
- CodeCastExpression.cs
- PkcsMisc.cs
- BitmapSizeOptions.cs
- ApplicationBuildProvider.cs
- TraceFilter.cs
- Figure.cs
- FontSizeConverter.cs
- SecurityImpersonationBehavior.cs
- SoapInteropTypes.cs
- _BasicClient.cs
- Cursor.cs
- ReflectEventDescriptor.cs
- VScrollBar.cs
- PropertyPathWorker.cs
- RootProfilePropertySettingsCollection.cs
- PreloadHost.cs
- GraphicsState.cs
- CategoryValueConverter.cs
- DynamicActivityTypeDescriptor.cs
- Pair.cs
- ValueQuery.cs
- MarkedHighlightComponent.cs
- SafeMILHandle.cs
- GcHandle.cs
- XPathEmptyIterator.cs
- AutomationAttributeInfo.cs
- WebPartConnectionsConnectVerb.cs
- EmbeddedObject.cs
- StreamingContext.cs
- PersistenceProviderBehavior.cs
- GeneralTransform3D.cs
- FrugalMap.cs
- SecureEnvironment.cs
- ObjectHelper.cs
- AvtEvent.cs
- BulletedList.cs
- SolidBrush.cs
- Point3DCollection.cs
- ObfuscateAssemblyAttribute.cs
- Update.cs
- SqlDependencyListener.cs
- PersistenceProviderFactory.cs
- SuppressMergeCheckAttribute.cs
- WindowsListViewGroupSubsetLink.cs
- SafeCertificateStore.cs
- SectionInput.cs
- ReceiveSecurityHeaderElementManager.cs
- RowVisual.cs
- ProfilePropertySettings.cs
- ImageField.cs
- InvalidWMPVersionException.cs
- SerializationFieldInfo.cs
- MediaSystem.cs
- WmfPlaceableFileHeader.cs
- XmlMapping.cs
- ContextMenuService.cs
- ProfileWorkflowElement.cs
- MenuDesigner.cs
- ListManagerBindingsCollection.cs
- CompositeScriptReferenceEventArgs.cs
- ProcessHostMapPath.cs
- SerializationInfo.cs
- RolePrincipal.cs
- SoapTypeAttribute.cs
- PropertyPushdownHelper.cs
- EnvelopedSignatureTransform.cs
- EventListenerClientSide.cs
- LogEntryHeaderv1Deserializer.cs
- MemberInfoSerializationHolder.cs
- TextProperties.cs
- ClientSettings.cs
- ClientScriptManagerWrapper.cs
- BuildDependencySet.cs
- CodeTypeReferenceCollection.cs
- ToolStripCustomTypeDescriptor.cs
- HelpKeywordAttribute.cs
- HttpCachePolicyElement.cs
- TextUtf8RawTextWriter.cs
- BinHexDecoder.cs
- TabControlEvent.cs
- StylusEventArgs.cs
- Or.cs
- JsonReader.cs