Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcConnectionHandle.cs
- MultiSelector.cs
- DbException.cs
- SQLMoneyStorage.cs
- DoubleAnimation.cs
- CommandID.cs
- XmlLanguageConverter.cs
- RangeValueProviderWrapper.cs
- VisualBasicDesignerHelper.cs
- EntityDataSourceContainerNameConverter.cs
- SortDescriptionCollection.cs
- ColumnWidthChangingEvent.cs
- IntranetCredentialPolicy.cs
- BaseTemplateBuildProvider.cs
- CollectionViewGroup.cs
- FlowLayout.cs
- DataPagerFieldCommandEventArgs.cs
- DynamicUpdateCommand.cs
- ChangeInterceptorAttribute.cs
- BmpBitmapDecoder.cs
- XmlSchemaValidationException.cs
- SortedList.cs
- RegexMatchCollection.cs
- StructuralCache.cs
- InfoCardProofToken.cs
- SubtreeProcessor.cs
- DataServiceKeyAttribute.cs
- PointKeyFrameCollection.cs
- NumberEdit.cs
- AmbientEnvironment.cs
- DataBindingExpressionBuilder.cs
- LayoutExceptionEventArgs.cs
- FontNamesConverter.cs
- RuleElement.cs
- TimelineGroup.cs
- Convert.cs
- DrawingAttributes.cs
- WinHttpWebProxyFinder.cs
- SqlFacetAttribute.cs
- DynamicUpdateCommand.cs
- MarkupCompilePass1.cs
- LoginDesignerUtil.cs
- MultipleFilterMatchesException.cs
- EntitySetRetriever.cs
- ConstructorBuilder.cs
- __ConsoleStream.cs
- DataControlImageButton.cs
- Cursors.cs
- WindowsImpersonationContext.cs
- DataSourceView.cs
- TableProviderWrapper.cs
- AuthorizationBehavior.cs
- Perspective.cs
- GuidConverter.cs
- AsyncOperationManager.cs
- HtmlTableCell.cs
- StyleModeStack.cs
- HttpWebRequest.cs
- SiteMapSection.cs
- ErrorFormatterPage.cs
- StoreContentChangedEventArgs.cs
- PreviewPrintController.cs
- PropertyDescriptors.cs
- CheckBox.cs
- TdsParserStateObject.cs
- Logging.cs
- Sequence.cs
- ReverseInheritProperty.cs
- HashRepartitionEnumerator.cs
- FragmentQueryKB.cs
- TypeListConverter.cs
- ChannelServices.cs
- PropertyMappingExceptionEventArgs.cs
- tooltip.cs
- JsonReader.cs
- TextServicesCompartmentEventSink.cs
- TranslateTransform.cs
- AdornerDecorator.cs
- X509Extension.cs
- CacheDependency.cs
- VersionedStream.cs
- ConstraintStruct.cs
- PropertyIDSet.cs
- CapiNative.cs
- ErrorStyle.cs
- CheckBox.cs
- FormViewModeEventArgs.cs
- XmlDictionary.cs
- ToolStripPanelRenderEventArgs.cs
- PkcsMisc.cs
- TimeZone.cs
- AssociationType.cs
- ArrangedElementCollection.cs
- Timer.cs
- WindowsFont.cs
- RunInstallerAttribute.cs
- QilTernary.cs
- ImageField.cs
- TabItemAutomationPeer.cs
- XmlObjectSerializer.cs